diff options
| author | 2025-06-09 13:43:45 +0300 | |
|---|---|---|
| committer | 2025-06-09 13:55:38 +0300 | |
| commit | 97af93b2a8ebc89364852e3f63e9fd8cfedaeedf (patch) | |
| tree | 27e2added74ee6c0ff91c9e7927491c661a8bb36 /nvim/lua/lsp.lua | |
| parent | 04.06.2025 (diff) | |
| download | dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.gz dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.bz2 dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.tar.xz dotfiles-97af93b2a8ebc89364852e3f63e9fd8cfedaeedf.zip | |
Перевёл dotfiles на stow
Diffstat (limited to 'nvim/lua/lsp.lua')
| -rw-r--r-- | nvim/lua/lsp.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/nvim/lua/lsp.lua b/nvim/lua/lsp.lua deleted file mode 100644 index f12ecae..0000000 --- a/nvim/lua/lsp.lua +++ /dev/null @@ -1,31 +0,0 @@ --- инициализация LSP для различных ЯП -local lspconfig = require("lspconfig") -local util = require("lspconfig/util") - -local function config(_config) - return vim.tbl_deep_extend("force", { - -- capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()), - }, _config or {}) -end --- иницализация gopls LSP для Go --- https://github.com/golang/tools/blob/master/gopls/doc/vim.md#neovim-install -lspconfig.gopls.setup(config({ - cmd = { "gopls", "serve" }, - filetypes = { "go", "go.mod" }, - root_dir = util.root_pattern("go.work", "go.mod", ".git"), - settings = { - gopls = { - analyses = { - unusedparams = true, - }, - staticcheck = true, - gofumpt = true, - }, - }, -})) - -lspconfig.templ.setup(config({ - cmd = { "templ", "lsp" }, - filetypes = { "templ" }, - root_markers = { "go.work", "go.mod", ".git" }, -})) |
