Implemented NVF
This commit is contained in:
@@ -27,7 +27,7 @@ return require('lazy').setup({
|
||||
build = ':TSUpdate'
|
||||
},
|
||||
'nvim-treesitter/playground',
|
||||
'theprimeagen/harpoon',
|
||||
'theprimeagen/harpoon2',
|
||||
'mbbill/undotree',
|
||||
'tpope/vim-fugitive',
|
||||
--'github/copilot.vim',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
vim.g.mapleader = " "
|
||||
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
@@ -5,6 +6,7 @@ vim.keymap.set("n", "<F5>", ":w! | !compiler %<CR>")
|
||||
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
|
||||
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
|
||||
14
modules/features/neovim/lua/plugins/harpoon.lua
Normal file
14
modules/features/neovim/lua/plugins/harpoon.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
--return {
|
||||
-- "harpoon",
|
||||
-- dependencies = {"nvim-lua/plenary.nvim"},
|
||||
-- config = function ()
|
||||
-- local harpoon = require("harpoon2")
|
||||
-- harpoon:setup()
|
||||
-- vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
-- vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||
-- vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
||||
-- vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
||||
-- vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
||||
-- end
|
||||
--}
|
||||
@@ -44,13 +44,25 @@
|
||||
specs.init = {
|
||||
data = null;
|
||||
before = ["MAIN_INIT"];
|
||||
config = "require('init')";
|
||||
config =
|
||||
''
|
||||
require('init')
|
||||
vim.g['wiki_root'] = '~/Documents/Scripts/Wiki/personal'
|
||||
|
||||
'';
|
||||
/*local harpoon = require("harpoon")
|
||||
harpoon:setup()
|
||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
||||
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
||||
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)*/
|
||||
};
|
||||
|
||||
specs.plugins = {
|
||||
data = [
|
||||
pkgs.vimPlugins.lz-n
|
||||
pkgs.vimPlugins.plenary-nvim
|
||||
pkgs.vimPlugins.nvim-lspconfig
|
||||
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
|
||||
|
||||
@@ -63,9 +75,9 @@
|
||||
pkgs.vimPlugins.oil-nvim
|
||||
pkgs.vimPlugins.lualine-nvim
|
||||
pkgs.vimPlugins.luasnip
|
||||
pkgs.vimPlugins.kanagawa-nvim
|
||||
pkgs.vimPlugins.kanagawa-nvim
|
||||
#pkgs.vimPlugins.telescope-nvim
|
||||
#pkgs.vimPlugins.kiwi-nvim
|
||||
pkgs.vimPlugins.wiki-vim
|
||||
];
|
||||
};
|
||||
|
||||
@@ -78,9 +90,11 @@
|
||||
pkgs.vimPlugins.fastaction-nvim
|
||||
pkgs.vimPlugins.mini-files
|
||||
pkgs.vimPlugins.codecompanion-nvim
|
||||
pkgs.vimPlugins.harpoon
|
||||
pkgs.vimPlugins.undotree
|
||||
pkgs.vimPlugins.vim-fugitive
|
||||
pkgs.vimPlugins.plenary-nvim
|
||||
#pkgs.vimPlugins.harpoon2
|
||||
#pkgs.vimPlugins.neowiki-nvim
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
141
modules/features/nvf.nix
Normal file
141
modules/features/nvf.nix
Normal file
@@ -0,0 +1,141 @@
|
||||
|
||||
{ pkgs, inputs, ... }: {
|
||||
flake.nixosModules.nvf = {pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
];
|
||||
imports = [
|
||||
inputs.nvf.nixosModules.default
|
||||
];
|
||||
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
settings.vim = {
|
||||
theme.enable = true;
|
||||
theme.name = "tokyonight";
|
||||
theme.style = "night";
|
||||
#netrw.enable = true;
|
||||
|
||||
statusline.lualine.enable = true;
|
||||
telescope.enable = true;
|
||||
autocomplete.nvim-cmp.enable = true;
|
||||
lsp.enable = true;
|
||||
git.vim-fugitive.enable = true;
|
||||
autopairs.nvim-autopairs.enable = true;
|
||||
spellcheck.enable = true;
|
||||
navigation.harpoon.enable = true;
|
||||
visuals.nvim-web-devicons.enable = true;
|
||||
notes.todo-comments.enable = true;
|
||||
|
||||
utility = {
|
||||
undotree.enable = true;
|
||||
oil-nvim.enable = true;
|
||||
snacks-nvim.enable = true;
|
||||
};
|
||||
|
||||
languages = {
|
||||
enableTreesitter = true;
|
||||
|
||||
nix.enable = true;
|
||||
go.enable = true;
|
||||
lua.enable = true;
|
||||
};
|
||||
opts = {
|
||||
tabstop = 4;
|
||||
softtabstop = 4;
|
||||
shiftwidth = 4;
|
||||
expandtab = true;
|
||||
smartindent = true;
|
||||
smartcase = true;
|
||||
ignorecase = true;
|
||||
wrap = false;
|
||||
updatetime = 50;
|
||||
termguicolors = true;
|
||||
mouse = "a";
|
||||
cursorline = true;
|
||||
pumheight = 16;
|
||||
winborder = "single";
|
||||
swapfile = false;
|
||||
backup = false;
|
||||
hlsearch = false;
|
||||
incsearch = true;
|
||||
scrolloff = 8;
|
||||
scroll = 6;
|
||||
signcolumn = "yes";
|
||||
colorcolumn = "80";
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>pv";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
lua = true;
|
||||
action = "vim.cmd.Ex";
|
||||
}
|
||||
{
|
||||
key = "<leader>u";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
lua = true;
|
||||
action = "vim.cmd.UndotreeToggle";
|
||||
}
|
||||
{
|
||||
key = "<leader>y";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "\"+y";
|
||||
}
|
||||
{
|
||||
key = "<leader>y";
|
||||
mode = "v";
|
||||
silent = true;
|
||||
action = "\"+y";
|
||||
}
|
||||
{
|
||||
key = "<leader>Y";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "\"+Y";
|
||||
}
|
||||
{
|
||||
key = "<C-d>";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "<C-d>zz";
|
||||
}
|
||||
{
|
||||
key = "<C-u>";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "<C-u>zz";
|
||||
}
|
||||
{
|
||||
key = "n";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "nzzzv";
|
||||
}
|
||||
{
|
||||
key = "N";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "Nzzzv";
|
||||
}
|
||||
{
|
||||
key = "J";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
action = "mzJ`z";
|
||||
}
|
||||
{
|
||||
key = "<leader>gs";
|
||||
mode = "n";
|
||||
silent = true;
|
||||
lua = true;
|
||||
action = "vim.cmd.Git";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
self.nixosModules.git
|
||||
self.nixosModules.lf
|
||||
self.nixosModules.zsh
|
||||
self.nixosModules.stylix
|
||||
#self.nixosModules.stylix
|
||||
self.nixosModules.hjem
|
||||
self.nixosModules.nh
|
||||
];
|
||||
@@ -17,7 +17,8 @@
|
||||
self.nixosModules.niri
|
||||
self.nixosModules.pipewire
|
||||
self.nixosModules.discord
|
||||
self.nixosModules.neovim
|
||||
#self.nixosModules.neovim
|
||||
self.nixosModules.nvf
|
||||
self.nixosModules.alacritty
|
||||
self.nixosModules.firefox
|
||||
self.nixosModules.chromium
|
||||
|
||||
Reference in New Issue
Block a user