tried stuff with treesitter
This commit is contained in:
parent
dca0ea31db
commit
2b768f0b87
3 changed files with 28 additions and 17 deletions
|
@ -19,6 +19,8 @@
|
||||||
smarttab = true;
|
smarttab = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
clipboard.register = "unnamedplus";
|
||||||
|
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
|
|
||||||
autoCmd = [
|
autoCmd = [
|
||||||
|
|
|
@ -29,24 +29,24 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>BufferMovePrevious";
|
action = "<cmd>BufferMovePrevious";
|
||||||
key = "<Shift><Ctrl>H";
|
key = "<Shift><Ctrl>H";
|
||||||
options = {
|
options = {
|
||||||
desc = "Move buffer to left";
|
desc = "Move buffer to left";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = "<cmd>BufferMoveNext";
|
action = "<cmd>BufferMoveNext";
|
||||||
key = "<Shift><Ctrl>L";
|
key = "<Shift><Ctrl>L";
|
||||||
options = {
|
options = {
|
||||||
desc = "Move buffer to right";
|
desc = "Move buffer to right";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -75,11 +75,14 @@
|
||||||
desc = "Open lazygit";
|
desc = "Open lazygit";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# toggle comments
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins.fzf-lua.keymaps = {
|
plugins.fzf-lua.keymaps = {
|
||||||
"<leader>/" = "live_grep";
|
"<leader>/" = "live_grep";
|
||||||
"<leader><Space>" = "files";
|
"<leader><Space>" = "files";
|
||||||
"<leader>fg" = "git_files";
|
"<leader>fg" = "git_files";
|
||||||
|
"<leader>," = "buffers";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,12 @@
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
folding = true;
|
||||||
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
auto_install = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
web-devicons = {
|
web-devicons = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue