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

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