1
0
This commit is contained in:
2024-02-05 23:13:08 +01:00
parent be50a7738f
commit 16253c1cbe
9 changed files with 466 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
File : conf.d/lvim/lua/user/dap.lua
Author : Jeff Lance <email@jefflance.me>
Date : 28.12.2023 21:34:48
Last Modified Date: 06.01.2024 18:53:52
Last Modified Date: 01.02.2024 12:47:04
Last Modified By : Jeff Lance <email@jefflance.me>
--]]--

View File

@@ -29,6 +29,11 @@ M.setup = function()
require("lvim.lsp.manager").setup(
"marksman", {
})
require("lvim.lsp.manager").setup(
"golangci_lint_ls", {
})
end
return M

View File

@@ -111,6 +111,9 @@ M.setup = function()
})
end
},
-- {
-- 'tpope/vim-dotenv',
-- },
-- gitignore
{
'jefflance/vim-gitignore',

View File

@@ -15,6 +15,24 @@ M.setup = function()
-- whichkey mappings
--
-- chatgpt bindings
lvim.builtin.which_key.mappings["C"] = {
name = "ChatGPT",
c = { "<cmd>ChatGPT<CR>", "ChatGPT" },
e = { "<cmd>ChatGPTEditWithInstruction<CR>", "Edit with instruction", mode = { "n", "v" } },
g = { "<cmd>ChatGPTRun grammar_correction<CR>", "Grammar Correction", mode = { "n", "v" } },
t = { "<cmd>ChatGPTRun translate<CR>", "Translate", mode = { "n", "v" } },
k = { "<cmd>ChatGPTRun keywords<CR>", "Keywords", mode = { "n", "v" } },
d = { "<cmd>ChatGPTRun docstring<CR>", "Docstring", mode = { "n", "v" } },
a = { "<cmd>ChatGPTRun add_tests<CR>", "Add Tests", mode = { "n", "v" } },
o = { "<cmd>ChatGPTRun optimize_code<CR>", "Optimize Code", mode = { "n", "v" } },
s = { "<cmd>ChatGPTRun summarize<CR>", "Summarize", mode = { "n", "v" } },
f = { "<cmd>ChatGPTRun fix_bugs<CR>", "Fix Bugs", mode = { "n", "v" } },
x = { "<cmd>ChatGPTRun explain_code<CR>", "Explain Code", mode = { "n", "v" } },
r = { "<cmd>ChatGPTRun roxygen_edit<CR>", "Roxygen Edit", mode = { "n", "v" } },
l = { "<cmd>ChatGPTRun code_readability_analysis<CR>", "Code Readability Analysis", mode = { "n", "v" } },
}
-- remap neo-tree shortcut to rnvimr
lvim.builtin.which_key.mappings["e"] = { "<CMD>RnvimrToggle<CR>", "File explorer" }