diff options
Diffstat (limited to 'dot_config/nvim/lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/commenter.lua | 11 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/lsp-zero.lua | 10 |
2 files changed, 16 insertions, 5 deletions
diff --git a/dot_config/nvim/lua/plugins/commenter.lua b/dot_config/nvim/lua/plugins/commenter.lua new file mode 100644 index 0000000..cdc88fe --- /dev/null +++ b/dot_config/nvim/lua/plugins/commenter.lua @@ -0,0 +1,11 @@ +return { + 'echasnovski/mini.nvim', + version = false, + config = function(_, opts) + -- I'm not sure why this is requireed. I thought Lazy.nvim didn't require the + -- config key if the only line in the function was to call setup(). + -- However, without this key, this plugin fails to load with the error + -- "mini" could not be found + require("mini.comment").setup(opts) + end, +} diff --git a/dot_config/nvim/lua/plugins/lsp-zero.lua b/dot_config/nvim/lua/plugins/lsp-zero.lua index 56cbcfd..a234493 100644 --- a/dot_config/nvim/lua/plugins/lsp-zero.lua +++ b/dot_config/nvim/lua/plugins/lsp-zero.lua @@ -35,7 +35,7 @@ return { local cmp_action = lsp_zero.cmp_action() cmp.setup({ - formatting = lsp_zero.cmp_format({ details = true }), + formatting = lsp_zero.cmp_format({details = true}), mapping = cmp.mapping.preset.insert({ ['<C-Space>'] = cmp.mapping.complete(), ['<C-u>'] = cmp.mapping.scroll_docs(-8), @@ -50,12 +50,12 @@ return { -- LSP { 'neovim/nvim-lspconfig', - cmd = { 'LspInfo', 'LspInstall', 'LspStart' }, - event = { 'BufReadPre', 'BufNewFile' }, + cmd = {'LspInfo', 'LspInstall', 'LspStart'}, + event = {'BufReadPre', 'BufNewFile'}, dependencies = { { 'hrsh7th/cmp-nvim-lsp' }, { 'williamboman/mason-lspconfig.nvim' }, - { "j-hui/fidget.nvim", tag = "legacy", opts = {} }, + { "j-hui/fidget.nvim", tag = "legacy", opts = {} }, }, config = function() -- This is where all the LSP shenanigans will live @@ -67,7 +67,7 @@ return { lsp_zero.on_attach(function(client, bufnr) -- see :help lsp_zero_keybindings -- to learn the available actions - lsp_zero.default_keymaps({ buffer = bufnr }) + lsp_zero.default_keymaps({buffer = bufnr}) end) require('mason-lspconfig').setup({ |
