4 Commits

Author SHA1 Message Date
6197dace5c feat(pairs): install pairs 2026-02-19 12:34:59 +02:00
9718a5a67b chore(cleanup): remove obsolete keymaps 2026-02-19 12:34:36 +02:00
3ce59f2e5b fix(lsp): terraformls root path 2026-02-19 12:34:20 +02:00
eeec610f47 fix(lsp): fix helm_ls configuration 2026-02-19 12:34:03 +02:00
4 changed files with 16 additions and 9 deletions

View File

@@ -16,6 +16,7 @@
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "4cfe411526a7a99c18281135e8b4765ae6330d15" },
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" },
"mini.pairs": { "branch": "main", "commit": "d5a29b6254dad07757832db505ea5aeab9aad43a" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
"none-ls.nvim": { "branch": "main", "commit": "0b457958cb958c16850b5a1fb38bbcd982909181" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },

View File

@@ -13,12 +13,6 @@ autocmd('LspAttach', {
local opts = { buffer = e.buf }
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "<leader>vrr", function() builtin.lsp_references() end, opts)
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
vim.keymap.set("n", "[d", function() vim.diagnostic.jump({ count = 1 }) end, opts)
vim.keymap.set("n", "]d", function() vim.diagnostic.jump({ count = -1 }) end, opts)
vim.keymap.set("n", "<M-F>", function() vim.lsp.buf.format() end, opts)

View File

@@ -75,9 +75,9 @@ return {
}
})
vim.lsp.config('helm-ls', {
vim.lsp.config('helm_ls', {
settings = {
['helm-ls'] = {
['helm_ls'] = {
helmLint = { enabled = false },
yamlls = { enabled = false },
},
@@ -85,7 +85,11 @@ return {
})
vim.lsp.config('terraformls', {
filetypes = { 'terraform', 'terraform-vars', 'tf' }
filetypes = { 'terraform', 'terraform-vars' },
-- run terraformls once for a git repo
root_dir = function(bufnr, on_dir)
on_dir(vim.fs.root(bufnr, '.git'))
end
})
end
}

View File

@@ -0,0 +1,8 @@
return {
'nvim-mini/mini.pairs',
version = '0.17.x',
config = function()
require('mini.pairs').setup()
end
}