nixvim/config/settings.nix
2024-05-16 01:20:37 +02:00

41 lines
1.2 KiB
Nix

{
config = {
extraConfigLuaPre =
# lua
''
vim.fn.sign_define("diagnosticsignerror", { text = " ", texthl = "diagnosticerror", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsignwarn", { text = " ", texthl = "diagnosticwarn", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsignhint", { text = "󰌵", texthl = "diagnostichint", linehl = "", numhl = "" })
vim.fn.sign_define("diagnosticsigninfo", { text = " ", texthl = "diagnosticinfo", linehl = "", numhl = "" })
'';
clipboard = {
providers.wl-copy.enable = true;
};
opts = {
number = true;
relativenumber = true;
tabstop = 2;
softtabstop = 2;
showtabline = 2;
expandtab = true;
smartindent = true;
shiftwidth = 2;
breakindent = true;
cursorline = true;
scrolloff = 8;
foldmethod = "manual";
foldenable = false;
linebreak = true;
spell = false;
swapfile = false;
timeoutlen = 300;
termguicolors = true;
showmode = false;
splitbelow = true;
splitkeep = "screen";
splitright = true;
};
};
}