nixvim: add default tab behavior

This commit is contained in:
Anthony Rodriguez 2024-09-23 13:48:11 +02:00
parent 2fdfe072c2
commit e66373dda6
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 82 additions and 72 deletions

View file

@ -19,7 +19,6 @@
globals.mapleader = " "; globals.mapleader = " ";
opts = { opts = {
smartindent = false;
relativenumber = true; relativenumber = true;
clipboard = "unnamedplus"; clipboard = "unnamedplus";
}; };

View file

@ -1,6 +1,13 @@
{ ... }: { ... }:
{ {
programs.nixvim = { programs.nixvim = {
opts = {
tabstop = 4;
shiftwidth = 4;
softtabstop = 0;
expandtab = true;
smartindent = true;
};
plugins = { plugins = {
treesitter = { treesitter = {
enable = true; enable = true;
@ -11,9 +18,7 @@
custom_captures = { }; custom_captures = { };
enable = true; enable = true;
}; };
indent = { indent.enable = false;
enable = true;
};
folding = true; folding = true;
parser_install_dir = { parser_install_dir = {
__raw = "vim.fs.joinpath(vim.fn.stdpath('data'), 'treesitter')"; __raw = "vim.fs.joinpath(vim.fn.stdpath('data'), 'treesitter')";
@ -70,7 +75,13 @@
gopls.enable = true; gopls.enable = true;
nixd.enable = true; nixd.enable = true;
lua-ls.enable = true; lua-ls.enable = true;
clangd.enable = true; clangd = {
enable = true;
cmd = [
"clangd"
"--fallback-style=webkit"
];
};
}; };
keymaps = { keymaps = {
lspBuf = { lspBuf = {