Nvim: update config for lsp and add few minor plugins

This commit is contained in:
Robert Kmiec
2025-12-05 10:46:37 +00:00
parent 2aa4027f9d
commit 1437d1826e
11 changed files with 74 additions and 30 deletions

View File

@@ -6,11 +6,12 @@ return {
'nvim-telescope/telescope-symbols.nvim',
'mrloop/telescope-git-branch.nvim',
{
"isak102/telescope-git-file-history.nvim",
dependencies = { "tpope/vim-fugitive" }
'isak102/telescope-git-file-history.nvim',
dependencies = { 'tpope/vim-fugitive' }
},
'kiyoon/telescope-insert-path.nvim',
"zongben/navimark.nvim",
'zongben/navimark.nvim',
'johmsalas/text-case.nvim',
},
event = 'VeryLazy',
--cmd = ":Telescope",
@@ -56,6 +57,17 @@ return {
},
}
}
require('textcase').setup({
enabled_methods = {
"to_lower_case",
"to_snake_case",
"to_dash_case",
"to_constant_case",
"to_camel_case",
"to_title_case",
"to_path_case",
}
})
require('telescope').load_extension('undo')
require('telescope').load_extension('menufacture')
require("telescope").load_extension("git_file_history")
@@ -75,6 +87,8 @@ return {
-- Neovim lsp pickers
map('n', 'grr', function() require("telescope.builtin").lsp_references() end, def)
map('n', 'gd', function() require("telescope.builtin").lsp_definitions() end, def)
map('n', 'grt', "<cmd>TextCaseOpenTelescope<CR>", def)
map('x', 'grt', "<cmd>TextCaseOpenTelescope<CR>", def)
-- git pickers
-- map('n', '<leader>gc', function() require("telescope.builtin").git_commits() end, def)
-- map('n', '<leader>gC', function() require("telescope.builtin").git_bcommits() end, def)