add go to lsp and update chatgpt.vim
This commit is contained in:
@@ -5,8 +5,8 @@ self: super: {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
src = super.fetchgit {
|
src = super.fetchgit {
|
||||||
url = "https://git.cloonar.com/Cloonar/chatgpt.vim.git";
|
url = "https://git.cloonar.com/Cloonar/chatgpt.vim.git";
|
||||||
rev = "59540981edeebd7faf9894e2ba40cbe4fb02f31c";
|
rev = "aa12bca3abc868b4ebacbd22b6fde83deb656869";
|
||||||
sha256 = "sha256-uBfdR8ezwrcPJeCs+hAnz0w7nE9N8rfqST/SuGlcoTs=";
|
sha256 = "sha256-eK7GQNHR03fQ7j2ExX9QSA+AIW5c1b8fsat3kbS6f9k=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
|
|
||||||
local servers = { 'ts_ls', 'lua', 'cssls', 'yamlls', 'intelephense' }
|
local servers = { 'ts_ls', 'lua', 'cssls', 'yamlls', 'intelephense', 'gopls' }
|
||||||
for _, lsp in pairs(servers) do
|
for _, lsp in pairs(servers) do
|
||||||
require('lspconfig')[lsp].setup {
|
require('lspconfig')[lsp].setup {
|
||||||
-- on_attach = on_attach,
|
-- on_attach = on_attach,
|
||||||
|
|||||||
Reference in New Issue
Block a user