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 } }, redhat = { telemetry = { enabled = false } },
yaml = { yaml = {
customTags = { customTags = {
"!fn", '!fn',
"!And", '!And',
"!If", '!If',
"!Not", '!Not',
"!Equals", '!Equals',
"!Or", '!Or',
"!FindInMap sequence", '!FindInMap sequence',
"!Base64", '!Base64',
"!Cidr", '!Cidr',
"!Ref", '!Ref',
"!Ref Scalar", '!Ref Scalar',
"!Sub", '!Sub',
"!GetAtt", '!GetAtt',
"!GetAZs", '!GetAZs',
"!ImportValue", '!ImportValue',
"!Select", '!Select',
"!Split", '!Split',
"!Join sequence" '!Join sequence'
}, },
format = { enable = true, singleQuote = true }, format = { enable = true, singleQuote = true },
hover = true, hover = true,

View File

@@ -1,5 +1,5 @@
-- Treesitter -- 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 -- Pick up the installed parsers in the install dir
for _, parser_dir in ipairs(vim.fn.glob(rocks_path .. '/tree-sitter-*/*/', true, true)) do 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 end
-- Start treesitter parsing on the current buffer -- Start treesitter parsing on the current buffer
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd('FileType', {
callback = function(ev) callback = function(ev)
pcall(vim.treesitter.start, ev.buf) pcall(vim.treesitter.start, ev.buf)
end end
@@ -16,7 +16,7 @@ vim.api.nvim_create_autocmd("FileType", {
vim.diagnostic.config({ vim.diagnostic.config({
underline = true, underline = true,
virtual_text = { virtual_text = {
prefix = "", prefix = '',
source = true, source = true,
}, },
severity_sort = true, severity_sort = true,
@@ -33,18 +33,18 @@ vim.api.nvim_create_autocmd('LspAttach', {
local bufopts = { noremap = true, silent = true, buffer = bufnr } local bufopts = { noremap = true, silent = true, buffer = bufnr }
vim.keymap.set('i', '<c-space>', vim.lsp.completion.get, bufopts) 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>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>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', 'K', vim.lsp.buf.hover, bufopts)
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, 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', 'ga', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, 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', 'gi', vim.lsp.buf.implementation, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, 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, end,
}) })

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
vim.opt.background = 'dark' -- Force a dark background for the colorscheme 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.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.cursorcolumn = true -- Highlight the column the cursor is on
vim.opt.cursorline = true -- Highlight the line 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 { require('vim._core.ui2').enable {
enable = true, enable = true,
msg = { 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 }, { -- return s({ trig = pair_begin, wordTrig = false }, {
-- t({ pair_begin }), -- t({ pair_begin }),
-- c(1, { -- c(1, {
-- r(1, "content", i(1)), -- r(1, 'content', i(1)),
-- sn(nil, { t({"", "\t"}), r(1, "content", i(1)), t({ "", "" }) }), -- sn(nil, { t({ '', '\t' }), r(1, 'content', i(1)), t({ '', '' }) }),
-- }), -- }),
-- t({ pair_end }), -- t({ pair_end }),
-- }) -- })