Skip to content

Commit

Permalink
add gopls
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Feb 6, 2024
1 parent 537a7ec commit 2c16558
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lua/ht/plugins/theme/northern.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
"fcancelinha/northern.nvim",
enabled = false,
config = function()
vim.cmd.colorscheme("northern")
end,
}
2 changes: 1 addition & 1 deletion lua/ht/version.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local M = {}

M.last_updated_time = '2024.02.05'
M.last_updated_time = '2024.02.06'

return M
16 changes: 16 additions & 0 deletions src/conf/external_tools/lsp_servers/gopls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { LspServer } from "@core/model";

export const server = new LspServer({
name: "gopls",
exe: false,
setup: (
_server: LspServer,
on_attach: () => void,
capabilities: LuaTable
) => {
luaRequire("lspconfig").gopls.setup({
on_attach,
capabilities,
});
},
});
2 changes: 2 additions & 0 deletions src/conf/external_tools/lsp_servers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { server as cmake } from "./cmake";
import { server as flutter } from "./flutter";
import { server as luaLs } from "./lua_ls";
import { server as nil } from "./nil";
import { server as gopls } from "./gopls";

export default [
typescript,
Expand All @@ -18,4 +19,5 @@ export default [
flutter,
luaLs,
nil,
gopls,
] as const;

0 comments on commit 2c16558

Please sign in to comment.