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

@@ -10,24 +10,24 @@ return {
redhat = { telemetry = { enabled = false } },
yaml = {
customTags = {
"!fn",
"!And",
"!If",
"!Not",
"!Equals",
"!Or",
"!FindInMap sequence",
"!Base64",
"!Cidr",
"!Ref",
"!Ref Scalar",
"!Sub",
"!GetAtt",
"!GetAZs",
"!ImportValue",
"!Select",
"!Split",
"!Join sequence"
'!fn',
'!And',
'!If',
'!Not',
'!Equals',
'!Or',
'!FindInMap sequence',
'!Base64',
'!Cidr',
'!Ref',
'!Ref Scalar',
'!Sub',
'!GetAtt',
'!GetAZs',
'!ImportValue',
'!Select',
'!Split',
'!Join sequence'
},
format = { enable = true, singleQuote = true },
hover = true,

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,
})

View File

@@ -40,7 +40,7 @@ require('luasnip').setup {
}
require('luasnip.loaders.from_vscode').lazy_load()
require('luasnip.loaders.from_lua').lazy_load({ paths = "./snippets" })
require('luasnip.loaders.from_lua').lazy_load({ paths = './snippets' })
-- TODO: Figure out keymappings that make sense
vim.keymap.set({ 'i' }, '<C-K>', function() require('luasnip').expand() end, { silent = true })

View File

@@ -10,10 +10,10 @@ require('twilight').setup({
context = 6,
treesitter = true,
expand = {
"function",
"method",
"table",
"if_statement",
'function',
'method',
'table',
'if_statement',
}
})

View File

@@ -1,5 +1,5 @@
vim.opt.background = 'dark' -- Force a dark background for the colorscheme
vim.opt.clipboard = 'unnamed,unnamedplus' -- Use both the "*" and "+" registers for yanks and deletes (puts things in the system clipboard)
vim.opt.clipboard = 'unnamed,unnamedplus' -- Use both the '*' and '+' registers for yanks and deletes (puts things in the system clipboard)
vim.opt.completeopt = 'fuzzy,menuone,noinsert,popup' -- Change how the completion menu is interacted with and displays
vim.opt.cursorcolumn = true -- Highlight the column the cursor is on
vim.opt.cursorline = true -- Highlight the line the cursor is on.

View File

@@ -3,6 +3,6 @@
require('vim._core.ui2').enable {
enable = true,
msg = {
targets = "msg", -- Displays in a floating text format
targets = 'msg', -- Displays in a floating text format
}
}

View File

@@ -14,8 +14,8 @@
-- return s({ trig = pair_begin, wordTrig = false }, {
-- t({ pair_begin }),
-- c(1, {
-- r(1, "content", i(1)),
-- sn(nil, { t({"", "\t"}), r(1, "content", i(1)), t({ "", "" }) }),
-- r(1, 'content', i(1)),
-- sn(nil, { t({ '', '\t' }), r(1, 'content', i(1)), t({ '', '' }) }),
-- }),
-- t({ pair_end }),
-- })