1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:59:29 +02:00
parent 5e8c7c52d9
commit 34a80fac0e
2 changed files with 1177 additions and 1108 deletions

View File

@ -13,4 +13,4 @@ end
vim.opt.rtp:prepend(lazypath)
-- Setup lazy.nvim
require("lazy").setup(plugins, opts)
-- require("lazy").setup(plugins, opts) -- Do in config.lua

View File

@ -145,7 +145,10 @@ require("lazy").setup({
["lsp_doc_border"] = true,
},
["routes"] = {
{ ["filter"] = { ["event"] = "msg_show", ["kind"] = "search_count" }, ["opts"] = { ["skip"] = true } },
{
["filter"] = { ["event"] = "msg_show", ["kind"] = "search_count" },
["opts"] = { ["skip"] = true },
},
},
},
},
@ -350,7 +353,9 @@ require("lazy").setup({
vim.opt.runtimepath:append(
"/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/nvim-treesitter"
)
vim.opt.runtimepath:append("/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers")
vim.opt.runtimepath:append(
"/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/treesitter-parsers"
)
require("nvim-treesitter.configs").setup(opts)
end,
@ -754,7 +759,11 @@ require("lazy").setup({
["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/trouble.nvim",
["name"] = "trouble",
},
{ "bbye", ["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-bbye", ["name"] = "bbye" },
{
"bbye",
["dir"] = "/home/lab/smchurla/Downloads/flake-nixinator/config/neovim/store/lazy-plugins/vim-bbye",
["name"] = "bbye",
},
{
"yanky",
["config"] = function(_, opts)
@ -770,12 +779,22 @@ require("lazy").setup({
-- Set up keybinds {{{
do
local __nixvim_binds = {
{ ["action"] = "<cmd>w<CR>", ["key"] = "<C-s>", ["mode"] = "n", ["options"] = {
{
["action"] = "<cmd>w<CR>",
["key"] = "<C-s>",
["mode"] = "n",
["options"] = {
["desc"] = "Save current buffer",
} },
{ ["action"] = "<cmd>wa<CR>", ["key"] = "<C-S-s>", ["mode"] = "n", ["options"] = {
},
},
{
["action"] = "<cmd>wa<CR>",
["key"] = "<C-S-s>",
["mode"] = "n",
["options"] = {
["desc"] = "Save all buffers",
} },
},
},
{ ["action"] = "<gv", ["key"] = "<", ["mode"] = "v", ["options"] = { ["desc"] = "Outdent" } },
{ ["action"] = ">gv", ["key"] = ">", ["mode"] = "v", ["options"] = { ["desc"] = "Indent" } },
{ ["action"] = "v<<Esc>", ["key"] = "<", ["mode"] = "n", ["options"] = { ["desc"] = "Outdent" } },
@ -790,17 +809,32 @@ do
["mode"] = "i",
["options"] = { ["desc"] = "Indent" },
},
{ ["action"] = "<C-w>", ["key"] = "<C-BS>", ["mode"] = "i", ["options"] = { ["desc"] = "Delete previous word" } },
{ ["action"] = "<C-w>", ["key"] = "<M-BS>", ["mode"] = "i", ["options"] = { ["desc"] = "Delete previous word" } },
{
["action"] = "<C-w>",
["key"] = "<C-BS>",
["mode"] = "i",
["options"] = { ["desc"] = "Delete previous word" },
},
{
["action"] = "<C-w>",
["key"] = "<M-BS>",
["mode"] = "i",
["options"] = { ["desc"] = "Delete previous word" },
},
{
["action"] = '<Esc>"+pi',
["key"] = "<C-S-v>",
["mode"] = "i",
["options"] = { ["desc"] = "Paste from clipboard" },
},
{ ["action"] = '<Esc>"+pi', ["key"] = "<C-v>", ["mode"] = "i", ["options"] = {
{
["action"] = '<Esc>"+pi',
["key"] = "<C-v>",
["mode"] = "i",
["options"] = {
["desc"] = "Paste from clipboard",
} },
},
},
{ ["action"] = '"+y', ["key"] = "<C-S-c>", ["mode"] = "v", ["options"] = { ["desc"] = "Copy to clipboard" } },
{
["action"] = "<cmd>nohlsearch<CR>",
@ -814,14 +848,24 @@ do
["mode"] = "n",
["options"] = { ["desc"] = "Show LSP hover" },
},
{ ["action"] = "<cmd>quitall<CR>", ["key"] = "<leader>qq", ["mode"] = "n", ["options"] = { ["desc"] = "Quit" } },
{
["action"] = "<cmd>quitall<CR>",
["key"] = "<leader>qq",
["mode"] = "n",
["options"] = { ["desc"] = "Quit" },
},
{
["action"] = "<cmd>quitall!<CR>",
["key"] = "<leader>q!",
["mode"] = "n",
["options"] = { ["desc"] = "Forceful quit" },
},
{ ["action"] = "<cmd>Lazy<CR>", ["key"] = "<leader>L", ["mode"] = "n", ["options"] = { ["desc"] = "Show Lazy" } },
{
["action"] = "<cmd>Lazy<CR>",
["key"] = "<leader>L",
["mode"] = "n",
["options"] = { ["desc"] = "Show Lazy" },
},
{
["action"] = "<cmd>Telescope buffers<CR>",
["key"] = "<leader><Space>",
@ -957,17 +1001,42 @@ do
["mode"] = "n",
["options"] = { ["desc"] = "Close current window" },
},
{ ["action"] = "<C-w>h", ["key"] = "<leader>wh", ["mode"] = "n", ["options"] = { ["desc"] = "Goto left window" } },
{ ["action"] = "<C-w>l", ["key"] = "<leader>wl", ["mode"] = "n", ["options"] = {
{
["action"] = "<C-w>h",
["key"] = "<leader>wh",
["mode"] = "n",
["options"] = { ["desc"] = "Goto left window" },
},
{
["action"] = "<C-w>l",
["key"] = "<leader>wl",
["mode"] = "n",
["options"] = {
["desc"] = "Goto right window",
} },
{ ["action"] = "<C-w>j", ["key"] = "<leader>wj", ["mode"] = "n", ["options"] = {
},
},
{
["action"] = "<C-w>j",
["key"] = "<leader>wj",
["mode"] = "n",
["options"] = {
["desc"] = "Goto bottom window",
} },
{ ["action"] = "<C-w>k", ["key"] = "<leader>wk", ["mode"] = "n", ["options"] = { ["desc"] = "Goto top window" } },
{ ["action"] = "<C-w>p", ["key"] = "<leader>ww", ["mode"] = "n", ["options"] = {
},
},
{
["action"] = "<C-w>k",
["key"] = "<leader>wk",
["mode"] = "n",
["options"] = { ["desc"] = "Goto top window" },
},
{
["action"] = "<C-w>p",
["key"] = "<leader>ww",
["mode"] = "n",
["options"] = {
["desc"] = "Goto other window",
} },
},
},
{ ["action"] = "+toggle", ["key"] = "<leader>t", ["mode"] = "n" },
{
["action"] = "<cmd>CHADopen --nofocus<CR>",