kekl
This commit is contained in:
@ -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;
|
||||
|
@ -66,6 +66,9 @@
|
||||
lsp.enable = true;
|
||||
treesitter.enable = true;
|
||||
};
|
||||
trouble = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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)
|
||||
|
21
modules/system/nix/nvim/snip.nix
Normal file
21
modules/system/nix/nvim/snip.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user