diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/plugins/lsp.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 5153eaf..c10eefc 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua | |||
@@ -72,7 +72,7 @@ return { | |||
72 | 72 | ||
73 | -- misc. | 73 | -- misc. |
74 | local lspconfig = require('lspconfig') | 74 | local lspconfig = require('lspconfig') |
75 | local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls' } | 75 | local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls', 'gopls' } |
76 | for _, lsp in pairs(servers) do | 76 | for _, lsp in pairs(servers) do |
77 | lspconfig[lsp].setup { | 77 | lspconfig[lsp].setup { |
78 | on_attach = on_attach, | 78 | on_attach = on_attach, |
@@ -176,7 +176,7 @@ return { | |||
176 | } | 176 | } |
177 | }, | 177 | }, |
178 | filetypes = { | 178 | filetypes = { |
179 | "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "go", "c", "cpp", "ruby", "swift", "csharp", "toml", "lua", "gitcommit", "java", "html", "vimwiki" | 179 | "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "c", "cpp", "ruby", "swift", "csharp", "toml", "lua", "gitcommit", "java", "html", "vimwiki" |
180 | } | 180 | } |
181 | } | 181 | } |
182 | end, | 182 | end, |
@@ -207,4 +207,7 @@ return { | |||
207 | "folke/lazydev.nvim", | 207 | "folke/lazydev.nvim", |
208 | ft = "lua", -- only load on lua files | 208 | ft = "lua", -- only load on lua files |
209 | }, | 209 | }, |
210 | { | ||
211 | 'fatih/vim-go' | ||
212 | } | ||
210 | } | 213 | } |