From 457c5609f1c58825eb3f84765e6f5959e6acb6a8 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 10 Oct 2024 10:06:36 +0200 Subject: nvim: go development --- .config/nvim/lua/plugins/lsp.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.config') 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 { -- misc. local lspconfig = require('lspconfig') - local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls' } + local servers = { 'ts_ls', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls', 'gopls' } for _, lsp in pairs(servers) do lspconfig[lsp].setup { on_attach = on_attach, @@ -176,7 +176,7 @@ return { } }, filetypes = { - "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "go", "c", "cpp", "ruby", "swift", "csharp", "toml", "lua", "gitcommit", "java", "html", "vimwiki" + "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "c", "cpp", "ruby", "swift", "csharp", "toml", "lua", "gitcommit", "java", "html", "vimwiki" } } end, @@ -207,4 +207,7 @@ return { "folke/lazydev.nvim", ft = "lua", -- only load on lua files }, + { + 'fatih/vim-go' + } } -- cgit v1.2.3-70-g09d2