Run formatter on all lua files
This commit is contained in:
parent
2eca6c0d56
commit
56f0d00f96
|
@ -1,5 +1,6 @@
|
|||
vim.filetype.add({
|
||||
extension = {
|
||||
['vtt'] = 'vtt',
|
||||
},
|
||||
filename = {
|
||||
['.scalafmt.conf'] = 'hocon',
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
return { 'ryicoh/deepl.vim',
|
||||
return {
|
||||
'ryicoh/deepl.vim',
|
||||
keys = {
|
||||
|
||||
{ '<leader><C-e>', function() vim.fn['deepl#v']("EN") end, mode = 'v' },
|
||||
{ '<leader><C-d>', function() vim.fn['deepl#v']("DE") end, mode = 'v' },
|
||||
},
|
||||
dependencies = {{ 'tsuyoshicho/vim-pass',
|
||||
dependencies = { {
|
||||
'tsuyoshicho/vim-pass',
|
||||
init = function()
|
||||
vim.g.pass_use_agent = 1
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
return {
|
||||
'mfussenegger/nvim-lint',
|
||||
|
||||
{
|
||||
'mhartington/formatter.nvim',
|
||||
opts = function()
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
return {
|
||||
'tpope/vim-fugitive'
|
||||
}
|
||||
return { 'tpope/vim-fugitive' }
|
||||
|
|
7
lua/plugins/gen.lua
Normal file
7
lua/plugins/gen.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"David-Kunz/gen.nvim",
|
||||
opts = {
|
||||
model = "mistral", -- The default model to use.
|
||||
init = false,
|
||||
}
|
||||
}
|
14
lua/plugins/git.lua
Normal file
14
lua/plugins/git.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
'lambdalisue/gina.vim',
|
||||
'gisphm/vim-gitignore',
|
||||
'sjl/splice.vim',
|
||||
{
|
||||
'lewis6991/gitsigns.nvim',
|
||||
config = {
|
||||
signs = {
|
||||
add = { text = '▌' },
|
||||
change = { text = '▐' },
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
|
@ -11,18 +11,21 @@ return {
|
|||
{ "chrisgrieser/nvim-genghis", dependencies = "stevearc/dressing.nvim" },
|
||||
|
||||
-- ic / ac
|
||||
{'glts/vim-textobj-comment',
|
||||
{
|
||||
'glts/vim-textobj-comment',
|
||||
dependencies = { 'kana/vim-textobj-user' }
|
||||
},
|
||||
-- ii / ai
|
||||
'michaeljsmith/vim-indent-object',
|
||||
'neovim/nvim-lspconfig',
|
||||
|
||||
{ 'nvim-telescope/telescope.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
},
|
||||
|
||||
{ 'ray-x/lsp_signature.nvim',
|
||||
{
|
||||
'ray-x/lsp_signature.nvim',
|
||||
config = function()
|
||||
require('lsp_signature').setup({})
|
||||
end
|
||||
|
@ -36,7 +39,8 @@ return {
|
|||
'lambdalisue/suda.vim',
|
||||
'jamessan/vim-gnupg',
|
||||
|
||||
{'lervag/vimtex',
|
||||
{
|
||||
'lervag/vimtex',
|
||||
init = function()
|
||||
vim.g.tex_conceal = "agm"
|
||||
vim.g.vimtex_quickfix_ignorefilters = { 'overfull', 'underfull' }
|
||||
|
|
|
@ -12,7 +12,8 @@ return {
|
|||
"hrsh7th/cmp-nvim-lsp",
|
||||
},
|
||||
---@class PluginLspOpts
|
||||
opts = function() return {
|
||||
opts = function()
|
||||
return {
|
||||
-- options for vim.diagnostic.config()
|
||||
diagnostics = {
|
||||
underline = true,
|
||||
|
@ -67,7 +68,8 @@ return {
|
|||
-- Specify * to use this function as a fallback for any server
|
||||
-- ["*"] = function(server, opts) end,
|
||||
},
|
||||
} end,
|
||||
}
|
||||
end,
|
||||
---@param opts PluginLspOpts
|
||||
config = function(_, opts)
|
||||
-- diagnostics
|
||||
|
@ -173,11 +175,11 @@ return {
|
|||
end,
|
||||
},
|
||||
'mfussenegger/nvim-jdtls',
|
||||
{'nvim-lua/lsp-status.nvim',
|
||||
{
|
||||
'nvim-lua/lsp-status.nvim',
|
||||
config = function(_, opts)
|
||||
local lsp_status = require('lsp-status')
|
||||
lsp_status.register_progress()
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@ return {
|
|||
'crater2150/vim-theme-chroma',
|
||||
},
|
||||
event = "VeryLazy",
|
||||
opts = function(_, opts) return {
|
||||
opts = function(_, opts)
|
||||
return {
|
||||
options = {
|
||||
theme = require('chroma-theme.lualine')
|
||||
},
|
||||
|
@ -17,7 +18,8 @@ return {
|
|||
lualine_x = {},
|
||||
lualine_y = {},
|
||||
lualine_z = {
|
||||
{'tabs',
|
||||
{
|
||||
'tabs',
|
||||
mode = 1,
|
||||
fmt = function(name, context)
|
||||
local buflist = vim.fn.tabpagebuflist(context.tabnr)
|
||||
|
|
|
@ -85,7 +85,8 @@ return {
|
|||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
},
|
||||
{ 'nvim-treesitter/playground',
|
||||
{
|
||||
'nvim-treesitter/playground',
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
cmd = {
|
||||
'TSPlaygroundToggle',
|
||||
|
@ -93,7 +94,8 @@ return {
|
|||
'TSNodeUnderCursor',
|
||||
}
|
||||
},
|
||||
{ "nvim-treesitter/nvim-treesitter-context",
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
event = "VeryLazy",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
cmd = { 'TSContextEnable', 'TSContextDisable', 'TSContextToggle' },
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
local sbtToScalaCLI = function()
|
||||
vim.cmd [[s/\s*libraryDependencies\s*+=\s*/\/\/> using dep /]]
|
||||
vim.cmd [[s/" \(%\+\) "/\=repeat(":", strlen(submatch(1)))/g]]
|
||||
|
|
Loading…
Reference in a new issue