diff --git a/config/init.lua b/config/init.lua index 5c6bb98..cfdc7c6 100644 --- a/config/init.lua +++ b/config/init.lua @@ -46,10 +46,22 @@ vim.cmd([[ ]]) -- language server setup -require('lspconfig').gopls.setup{} -require('lspconfig').clangd.setup{} -require('lspconfig').tsserver.setup{} -require('lspconfig').lua_ls.setup{} -require('lspconfig').rust_analyzer.setup{} -require('lspconfig').pylsp.setup{} +local lspconfig = require('lspconfig') +lspconfig.gopls.setup{} +lspconfig.clangd.setup{} +lspconfig.lua_ls.setup{ + settings = { + Lua = { + diagnostics = { globals = { 'vim' } }, + }, + telemetry = { + enable = false, + }, + }, +} +lspconfig.rust_analyzer.setup{} +lspconfig.pylsp.setup{} + +-- lsp mappingsd +vim.keymap.set('n', '