nixbook: update, tweaks

This commit is contained in:
tristan 2024-10-28 12:24:31 +00:00
parent 5df2f606da
commit 62d9f9ef41
11 changed files with 182 additions and 102 deletions

View file

@ -10,6 +10,10 @@
${cmd}
end'';
in {
colorschemes.base16 = {
enable = true;
colorscheme = "gruvbox-dark-hard";
};
globals = {
mapleader = " ";
};
@ -21,10 +25,10 @@ in {
expandtab = true;
smartindent = true;
scrolloff = 4;
smoothscroll = true;
undofile = true;
undodir = lua ''vim.fn.expand("$HOME/.local/share/nvim/undo")'';
list = true;
listchars = builtins.concatStringsSep "," [
"tab: >"
@ -36,7 +40,10 @@ in {
foldlevel = 2;
};
extraPlugins = [(pkgs.vimPlugins.actions-preview-nvim)];
extraPlugins = [
(pkgs.vimPlugins.actions-preview-nvim)
(pkgs.vimPlugins.vimwiki)
];
extraConfigLua = ''
require("actions-preview").setup {
highlight_command = {
@ -214,7 +221,7 @@ in {
autoCmd = [
{
event = "BufWritePre";
pattern = "*";
pattern = "*.go";
# https://github.com/golang/tools/blob/master/gopls/doc/vim.md#imports-and-formatting
callback = luaFunc ''
local params = vim.lsp.util.make_range_params()
@ -269,7 +276,7 @@ in {
lsp = {
enable = true;
servers = {
ts-ls.enable = true;
ts_ls.enable = true;
nixd = {
enable = true;
settings = {
@ -281,6 +288,7 @@ in {
};
yamlls.enable = true;
gopls.enable = true;
ansiblels.enable = true;
};
keymaps = {
lspBuf = {
@ -375,7 +383,16 @@ in {
};
};
oil.enable = true;
oil = {
enable = true;
settings = {
keymaps = {
"<C-r>" = "actions.refresh";
"zh" = "actions.toggle_hidden";
};
view_options.show_hidden = true;
};
};
ts-autotag.enable = true;
guess-indent.enable = true;
};