This commit is contained in:
fqbn207
2025-01-17 22:56:22 +01:00
parent 2e56bd6518
commit cbab90ee11
4 changed files with 31 additions and 1 deletions

View File

@ -9,11 +9,17 @@
./neotree.nix
./cmp.nix
./lualine.nix
./snip.nix
];
programs.nvf = {
enable = true;
settings = {
vim = {
ui = {
noice = {
enable = true;
};
};
extraLuaFiles = [
(builtins.path {
path = ./raw/opts.lua;

View File

@ -66,6 +66,9 @@
lsp.enable = true;
treesitter.enable = true;
};
trouble = {
enable = true;
};
};
};
}

View File

@ -16,7 +16,7 @@ vim.diagnostic.config({
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
vim.g.mapleader = " "
vim.g.mapleader = "\\"
map('n', '<c-t>', ":ToggleTerm size=15<CR>", opts)
map('n', '<c-n>', ":Neotree filesystem reveal toggle<CR>", opts)
map('v', '<Tab>', '>gv', opts)

View File

@ -0,0 +1,21 @@
{ pkgs, lib,...}:
{
programs.nvf.settings.vim = {
snippets = {
luasnip = {
enable = true;
providers = [
"friendly-snippets"
"vimPlugins.vim-snippets"
"crates-nvim"
"lspkind"
"lspsaga"
"rustaceanvim"
];
setupOpts = {
enable_autosnippets = true;
};
};
};
};
}