diff --git a/init.lua b/init.lua index ea7b0ad..3c10cb7 100644 --- a/init.lua +++ b/init.lua @@ -115,3 +115,17 @@ require'nvim-treesitter.configs'.setup { require("luasnip.loaders.from_vscode").load() -------------------- AUTOPAIRS ----------------------------- require('nvim-autopairs').setup{} +require("nvim-autopairs.completion.cmp").setup({ + map_cr = true, -- map on insert mode + map_complete = true, -- it will auto insert `(` (map_char) after select function or method item + auto_select = true, -- automatically select the first item + insert = false, -- use insert confirm behavior instead of replace + map_char = { -- modifies the function or method delimiter by filetypes + all = '(', + tex = '{' + } +}) +-------------------- SHADE --------------------------------- +require('shade').setup({ + overlay_opacity = 65 +}) diff --git a/lua/mylsp.lua b/lua/mylsp.lua index d9a47c2..6cd40ef 100644 --- a/lua/mylsp.lua +++ b/lua/mylsp.lua @@ -41,7 +41,7 @@ local on_attach = function(client, bufnr) utils.map('n', 'd', 'lua vim.lsp.buf.definition()', opts) utils.map('n', 'e', 'lua vim.lsp.buf.declaration()', opts) utils.map('n', 'h', 'lua vim.lsp.buf.hover()', opts) - utils.map('n', 'c', 'lua vim.lsp.buf.outgoing_calls()<, optsCR>') + utils.map('n', 'c', 'lua vim.lsp.buf.outgoing_calls()', opts) utils.map('n', 'C', 'lua vim.lsp.buf.incoming_calls()', opts) utils.map('n', 'm', 'lua vim.lsp.buf.rename()', opts) -- utils.map('n', 'r', 'lua vim.lsp.buf.references()') diff --git a/lua/plugins.lua b/lua/plugins.lua index 6fba26c..210a3ac 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -42,4 +42,5 @@ return require('packer').startup(function() use {'simrat39/symbols-outline.nvim'} use {'f-person/git-blame.nvim'} use {'windwp/nvim-autopairs'} + use {'sunjon/shade.nvim'} end)