This commit is contained in:
sankalp committed 2024-08-31 15:24:01 +05:45
1 parent 0499c3bc85
commit f775a1ee88
10 files changed
+174 -17

No files matched your search

+7 -2
View File
@@ -18,7 +18,7 @@ local cmp_nvim_lsp = require('cmp_nvim_lsp')
-- import mason_lspconfig plugin
local mason_lspconfig = require('mason-lspconfig')
local keymap = vim.keymap -- for conciseness
-- local keymap = vim.keymap -- for conciseness
-- vim.api.nvim_create_autocmd('LspAttach', {
-- group = vim.api.nvim_create_augroup('UserLspConfig', {}),
@@ -102,10 +102,15 @@ mason_lspconfig.setup({
diagnostics = {
globals = { 'vim' },
},
hint = { enable = true },
completion = {
callSnippet = 'Replace',
},
workspace = {
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.stdpath('config') .. '/lua'] = true,
},
},
},
},
})