mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-24 12:21:46 +00:00
configure gopls as golang LSP
This commit is contained in:
parent
10af730fa0
commit
29a40276f6
@ -165,6 +165,7 @@ return {
|
|||||||
tsserver = {},
|
tsserver = {},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
svelte = {},
|
svelte = {},
|
||||||
|
gopls = {},
|
||||||
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||||
--
|
--
|
||||||
-- Some languages (like typescript) have entire language plugins that can be useful:
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||||
@ -200,6 +201,9 @@ return {
|
|||||||
vim.list_extend(ensure_installed, {
|
vim.list_extend(ensure_installed, {
|
||||||
'stylua', -- Used to format lua code
|
'stylua', -- Used to format lua code
|
||||||
'node-debug2-adapter',
|
'node-debug2-adapter',
|
||||||
|
'eslint_d',
|
||||||
|
'prettier',
|
||||||
|
'prettierd',
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user