Added tresitter module and other misc updates

This commit is contained in:
alejandro-angulo 2025-06-06 23:13:39 -07:00
parent 21febe9eef
commit c189da135d
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
6 changed files with 85 additions and 35 deletions

View file

@ -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"
];
};
};
}

View file

@ -26,10 +26,11 @@
sources = [
{ name = "nvim_lsp"; }
{ name = "buffer"; }
{ name = "path"; }
{ name = "cmdline"; }
{ name = "cmp-clippy"; }
{ name = "luasnip"; }
{ name = "path"; }
{ name = "nvim_lsp"; }
];
};
};

View file

@ -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;

View file

@ -2,11 +2,11 @@
plugins.lualine = {
enable = true;
settings.options = {
component_separators = {
componentSeparators = {
right = "";
left = "";
};
section_separators = {
sectionSeparators = {
right = "";
left = "";
};

View 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;
};
};
}