Compare commits
3 commits
acb933d735
...
b9d65bd05a
Author | SHA1 | Date | |
---|---|---|---|
b9d65bd05a | |||
b8772ae9b4 | |||
ed05721db1 |
5 changed files with 128 additions and 88 deletions
|
@ -64,3 +64,25 @@ vim.keymap.set("n", "<leader>ce", ":Copilot enable<CR>", { desc = "Enable Copilo
|
|||
vim.keymap.set("n", "<leader>cd", ":Copilot disable<CR>", { desc = "Disable Copilot Completions" })
|
||||
vim.keymap.set("n", "<leader>cc", ":CopilotChatToggle<CR>", { desc = "Toggle Copilot Chat" })
|
||||
vim.keymap.set("n", "<leader>cx", ":CopilotChatReset<CR>", { desc = "Reset Copilot Chat" })
|
||||
|
||||
-- Configure f-key shortcuts
|
||||
vim.keymap.set("n", "<F1>", vim.lsp.buf.hover)
|
||||
vim.keymap.set("i", "<F1>", vim.lsp.buf.hover)
|
||||
vim.keymap.set("n", "<F2>", vim.lsp.buf.rename)
|
||||
vim.keymap.set("i", "<F2>", vim.lsp.buf.rename)
|
||||
vim.keymap.set("n", "<F3>", "<c-i>")
|
||||
vim.keymap.set("i", "<F3>", "<c-i>")
|
||||
vim.keymap.set("n", "<S-F3>", "<c-o>")
|
||||
vim.keymap.set("i", "<S-F3>", "<c-o>")
|
||||
vim.keymap.set("n", "<F4>", ":BufferClose<CR>")
|
||||
vim.keymap.set("i", "<F4>", ":BufferClose<CR>")
|
||||
vim.keymap.set("n", "<F7>", ":Gitsigns next_hunk<CR>")
|
||||
vim.keymap.set("i", "<F7>", ":Gitsigns next_hunk<CR>")
|
||||
vim.keymap.set("n", "<S-F7>", ":Gitsigns prev_hunk<CR>")
|
||||
vim.keymap.set("i", "<S-F7>", ":Gitsigns prev_hunk<CR>")
|
||||
vim.keymap.set("n", "<F8>", vim.diagnostic.goto_next)
|
||||
vim.keymap.set("i", "<F8>", vim.diagnostic.goto_next)
|
||||
vim.keymap.set("n", "<S-F8>", vim.diagnostic.goto_prev)
|
||||
vim.keymap.set("i", "<S-F8>", vim.diagnostic.goto_prev)
|
||||
vim.keymap.set("n", "<F12>", vim.lsp.buf.definition)
|
||||
vim.keymap.set("i", "<F12>", vim.lsp.buf.definition)
|
||||
|
|
|
@ -57,6 +57,8 @@ return {
|
|||
"goolord/alpha-nvim",
|
||||
vim.keymap.set("n", "<A-left>", ":BufferPrevious<CR>", { desc = "Previous Buffer" }),
|
||||
vim.keymap.set("n", "<A-right>", ":BufferNext<CR>", { desc = "Next Buffer" }),
|
||||
vim.keymap.set("n", "<A-h>", ":BufferPrevious<CR>", { desc = "Previous Buffer" }),
|
||||
vim.keymap.set("n", "<A-l>", ":BufferNext<CR>", { desc = "Next Buffer" }),
|
||||
vim.keymap.set("n", "<leader>bq", ":BufferClose<CR>", { desc = "Close Buffer" }),
|
||||
vim.keymap.set("n", "<A-q>", ":BufferClose<CR>", { desc = "Close Buffer" }),
|
||||
vim.keymap.set("n", "<leader>bp", ":BufferPrevious<CR>", { desc = "Previous Buffer" }),
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
return {
|
||||
-- {
|
||||
-- "L3MON4D3/LuaSnip",
|
||||
-- dependencies = {
|
||||
-- "saadparwaiz1/cmp_luasnip", -- Snippets source for nvim-cmp
|
||||
-- "rafamadriz/friendly-snippets", -- Collection of snippets
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
-- dependencies = {
|
||||
-- "saadparwaiz1/cmp_luasnip", -- Snippets source for nvim-cmp
|
||||
-- "rafamadriz/friendly-snippets", -- Collection of snippets
|
||||
-- },
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
config = function()
|
||||
-- require("luasnip.loaders.from_vscode").lazy_load() -- Load snippets from friendly-snippets
|
||||
-- require("luasnip.loaders.from_vscode").lazy_load() -- Load snippets from friendly-snippets
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
|
|
|
@ -8,6 +8,14 @@ return {
|
|||
vim.keymap.set("n", "<Leader>dc", dap.continue, { desc = "Start/Continue" })
|
||||
vim.keymap.set("n", "<Leader>do", dap.step_over, { desc = "Step Over" })
|
||||
vim.keymap.set("n", "<Leader>di", dap.step_into, { desc = "Step Into" })
|
||||
vim.keymap.set("n", "<F9>", dap.toggle_breakpoint)
|
||||
vim.keymap.set("i", "<F9>", dap.toggle_breakpoint)
|
||||
vim.keymap.set("n", "<F5>", dap.continue)
|
||||
vim.keymap.set("i", "<F5>", dap.continue)
|
||||
vim.keymap.set("n", "<F10>", dap.step_over)
|
||||
vim.keymap.set("i", "<F10>", dap.step_over)
|
||||
vim.keymap.set("n", "<F11>", dap.step_into)
|
||||
vim.keymap.set("i", "<F11>", dap.step_into)
|
||||
vim.keymap.set("n", "<Leader>dt", dap.terminate, { desc = "Terminate Session" })
|
||||
end,
|
||||
},
|
||||
|
|
|
@ -16,6 +16,8 @@ return {
|
|||
"hadolint",
|
||||
"yamllint",
|
||||
"gh-actions-language-server",
|
||||
"ansible-language-server",
|
||||
"ansible-lint",
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
@ -28,7 +30,7 @@ return {
|
|||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"bashls",
|
||||
--"helm_ls",
|
||||
"helm_ls",
|
||||
"jsonls",
|
||||
"nginx_language_server",
|
||||
"basedpyright",
|
||||
|
@ -78,7 +80,10 @@ return {
|
|||
filetypes = { "sh", "bash" },
|
||||
})
|
||||
lspconfig.gh_actions_ls.setup({ capabilities = capabilities })
|
||||
-- lspconfig.helm_ls.setup({ capabilities = capabilities })
|
||||
lspconfig.helm_ls.setup({
|
||||
capabilities = capabilities,
|
||||
filetypes = { "tpl", "helm"},
|
||||
})
|
||||
lspconfig.jsonls.setup({ capabilities = capabilities })
|
||||
lspconfig.basedpyright.setup({
|
||||
capabilities = capabilities,
|
||||
|
@ -104,11 +109,14 @@ return {
|
|||
},
|
||||
})
|
||||
lspconfig.yamlls.setup({ capabilities = capabilities })
|
||||
lspconfig.ansiblels.setup({ capabilities = capabilities })
|
||||
vim.keymap.set("n", "<leader>vd", vim.lsp.buf.hover, { desc = "View Docstring" })
|
||||
vim.keymap.set("n", "<leader>gt", vim.lsp.buf.definition, { desc = "Go To Definition" })
|
||||
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "Show Code Actions" })
|
||||
vim.keymap.set("n", "<leader>cr", vim.lsp.buf.rename, { desc = "Refactor Name" })
|
||||
vim.keymap.set("n", "<leader>vr", vim.lsp.buf.references, { desc = "View References" })
|
||||
vim.keymap.set("n", "<leader>pp", vim.diagnostic.goto_prev, { desc = "Previous Issue" })
|
||||
vim.keymap.set("n", "<leader>pn", vim.diagnostic.goto_next, { desc = "Next Issue" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue