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 = " ";
opts = {
smartindent = false;
relativenumber = true;
clipboard = "unnamedplus";
};

View file

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