Added tresitter module and other misc updates
This commit is contained in:
parent
21febe9eef
commit
c189da135d
6 changed files with 85 additions and 35 deletions
|
@ -11,6 +11,7 @@
|
|||
./plugins/lualine.nix
|
||||
./plugins/rhubarb.nix
|
||||
./plugins/telescope.nix
|
||||
./plugins/treesitter.nix
|
||||
./plugins/vim-obsession.nix
|
||||
];
|
||||
|
||||
|
@ -24,7 +25,7 @@
|
|||
expandtab = true;
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
autoindent = true;
|
||||
autoindent = false;
|
||||
termguicolors = true;
|
||||
tabstop = 4;
|
||||
shiftwidth = 4;
|
||||
|
@ -60,14 +61,23 @@
|
|||
];
|
||||
|
||||
plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
settings.highlight.enable = true;
|
||||
};
|
||||
treesitter-context.enable = true;
|
||||
tmux-navigator.enable = true;
|
||||
fugitive.enable = true;
|
||||
comment.enable = true;
|
||||
fidget.enable = true;
|
||||
web-devicons.enable = true;
|
||||
|
||||
/*
|
||||
:TransparentEnable
|
||||
:TransparentDisable
|
||||
:TransparentToggle
|
||||
*/
|
||||
transparent = {
|
||||
enable = true;
|
||||
settings.exclude_groups = [
|
||||
"CursorLine"
|
||||
"CursorLineNr"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -26,10 +26,11 @@
|
|||
sources = [
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "buffer"; }
|
||||
{ name = "path"; }
|
||||
{ name = "cmdline"; }
|
||||
{ name = "cmp-clippy"; }
|
||||
{ name = "luasnip"; }
|
||||
{ name = "path"; }
|
||||
{ name = "nvim_lsp"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -58,9 +58,6 @@
|
|||
# c++
|
||||
clangd.enable = true;
|
||||
|
||||
# elixir
|
||||
elixirls.enable = true;
|
||||
|
||||
terraformls.enable = true;
|
||||
tflint.enable = true;
|
||||
|
||||
|
@ -74,6 +71,9 @@
|
|||
installRustc = false;
|
||||
};
|
||||
|
||||
# golang
|
||||
gopls.enable = true;
|
||||
|
||||
# nix
|
||||
nixd = {
|
||||
enable = true;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
plugins.lualine = {
|
||||
enable = true;
|
||||
settings.options = {
|
||||
component_separators = {
|
||||
componentSeparators = {
|
||||
right = "";
|
||||
left = "";
|
||||
};
|
||||
section_separators = {
|
||||
sectionSeparators = {
|
||||
right = "";
|
||||
left = "";
|
||||
};
|
||||
|
|
23
config/plugins/treesitter.nix
Normal file
23
config/plugins/treesitter.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Use treesitter's indenting
|
||||
opts.autoindent = false;
|
||||
|
||||
plugins.treesitter-context.enable = true;
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight.enable = true;
|
||||
incremental_selection = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
init_selection = "<CR>";
|
||||
node_decremental = "<CR>";
|
||||
node_incremental = "<TAB>";
|
||||
scope_incremental = "<S-TAB>";
|
||||
};
|
||||
};
|
||||
indent.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue