summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2024-10-10 10:06:36 +0200
committerYigit Sever2024-10-10 10:06:36 +0200
commit457c5609f1c58825eb3f84765e6f5959e6acb6a8 (patch)
treea5834f8232032ffdc0522e37ecf39730fc29d504 /.config
parentf5f41ed79cab9628ecb401611f885758bfc614d6 (diff)
downloaddotfiles-457c5609f1c58825eb3f84765e6f5959e6acb6a8.tar.gz
dotfiles-457c5609f1c58825eb3f84765e6f5959e6acb6a8.tar.bz2
dotfiles-457c5609f1c58825eb3f84765e6f5959e6acb6a8.zip
nvim: go development
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/plugins/lsp.lua7
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}