feat: Changing the signature_help shortcut to ctrl+shift+k.

Changing double quotes to single quotes.
This commit is contained in:
2026-08-30 17:35:49 -05:00
parent dd26af461d
commit a82bbcd531
7 changed files with 34 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
-- Treesitter
local rocks_path = os.getenv('HOME') .. "/.luarocks/lib/luarocks/rocks-5.1"
local rocks_path = os.getenv('HOME') .. '/.luarocks/lib/luarocks/rocks-5.1'
-- Pick up the installed parsers in the install dir
for _, parser_dir in ipairs(vim.fn.glob(rocks_path .. '/tree-sitter-*/*/', true, true)) do
@@ -7,7 +7,7 @@ for _, parser_dir in ipairs(vim.fn.glob(rocks_path .. '/tree-sitter-*/*/', true,
end
-- Start treesitter parsing on the current buffer
vim.api.nvim_create_autocmd("FileType", {
vim.api.nvim_create_autocmd('FileType', {
callback = function(ev)
pcall(vim.treesitter.start, ev.buf)
end
@@ -16,7 +16,7 @@ vim.api.nvim_create_autocmd("FileType", {
vim.diagnostic.config({
underline = true,
virtual_text = {
prefix = "",
prefix = '',
source = true,
},
severity_sort = true,
@@ -33,18 +33,18 @@ vim.api.nvim_create_autocmd('LspAttach', {
local bufopts = { noremap = true, silent = true, buffer = bufnr }
vim.keymap.set('i', '<c-space>', vim.lsp.completion.get, bufopts)
vim.keymap.set('n', '<C-[>', function() vim.diagnostic.jump({ count = -1, float = true }) end, bufopts)
vim.keymap.set('n', '<C-]>', function() vim.diagnostic.jump({ count = 1, float = true }) end, bufopts)
vim.keymap.set('n', '<c-[>', function() vim.diagnostic.jump({ count = -1, float = true }) end, bufopts)
vim.keymap.set('n', '<c-]>', function() vim.diagnostic.jump({ count = 1, float = true }) end, bufopts)
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, bufopts)
vim.keymap.set('n', '<leader>for', function() vim.lsp.buf.format { async = true } end, bufopts)
vim.keymap.set('n', '<leader>r', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', '<leader>re', vim.lsp.buf.rename, bufopts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts)
vim.keymap.set('n', 'ga', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
vim.keymap.set('n', 'gs', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<c-s-K>', vim.lsp.buf.signature_help, bufopts)
end,
})