kekl
This commit is contained in:
@ -9,11 +9,17 @@
|
|||||||
./neotree.nix
|
./neotree.nix
|
||||||
./cmp.nix
|
./cmp.nix
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
|
./snip.nix
|
||||||
];
|
];
|
||||||
programs.nvf = {
|
programs.nvf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
vim = {
|
vim = {
|
||||||
|
ui = {
|
||||||
|
noice = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
extraLuaFiles = [
|
extraLuaFiles = [
|
||||||
(builtins.path {
|
(builtins.path {
|
||||||
path = ./raw/opts.lua;
|
path = ./raw/opts.lua;
|
||||||
|
@ -66,6 +66,9 @@
|
|||||||
lsp.enable = true;
|
lsp.enable = true;
|
||||||
treesitter.enable = true;
|
treesitter.enable = true;
|
||||||
};
|
};
|
||||||
|
trouble = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ vim.diagnostic.config({
|
|||||||
local map = vim.api.nvim_set_keymap
|
local map = vim.api.nvim_set_keymap
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = "\\"
|
||||||
map('n', '<c-t>', ":ToggleTerm size=15<CR>", opts)
|
map('n', '<c-t>', ":ToggleTerm size=15<CR>", opts)
|
||||||
map('n', '<c-n>', ":Neotree filesystem reveal toggle<CR>", opts)
|
map('n', '<c-n>', ":Neotree filesystem reveal toggle<CR>", opts)
|
||||||
map('v', '<Tab>', '>gv', 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