even more nvim config
This commit is contained in:
parent
3783ec19c6
commit
586f01ac58
3 changed files with 108 additions and 0 deletions
|
@ -4,6 +4,9 @@ in with lib; {
|
|||
options.programs.v.nvim = { enable = mkEnableOption "nvim"; };
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ fd ];
|
||||
home.file.".config/nvim/lua/startup/themes/my_theme.lua" = {
|
||||
source = ./dashboard.lua;
|
||||
};
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
|
@ -24,6 +27,11 @@ in with lib; {
|
|||
{
|
||||
mode = "n";
|
||||
key = "<leader>ff";
|
||||
action = ":Telescope find_files<CR>";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fs";
|
||||
action = ":Telescope file_browser<CR>";
|
||||
}
|
||||
{
|
||||
|
@ -42,6 +50,11 @@ in with lib; {
|
|||
key = "<leader>fo";
|
||||
action = ":Telescope oldfiles<CR>";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fr";
|
||||
action = ":Telescope frecency<CR>";
|
||||
}
|
||||
# Commenting
|
||||
{
|
||||
mode = "n";
|
||||
|
@ -128,6 +141,12 @@ in with lib; {
|
|||
action =
|
||||
"function() require('neotest').run.run(vim.fn.expand('%')) end";
|
||||
}
|
||||
# LSP
|
||||
{
|
||||
mode = "n";
|
||||
key = "<M-CR>";
|
||||
action = ":Lspsaga code_action<CR>";
|
||||
}
|
||||
];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
|
@ -147,6 +166,11 @@ in with lib; {
|
|||
nix.enable = true;
|
||||
luasnip.enable = true;
|
||||
typst-vim.enable = true;
|
||||
startup = {
|
||||
enable = true;
|
||||
theme = "my_theme";
|
||||
};
|
||||
none-ls.enable = false;
|
||||
obsidian = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -159,6 +183,10 @@ in with lib; {
|
|||
name = "notes";
|
||||
path = "~/src/notes";
|
||||
}
|
||||
{
|
||||
name = "uni";
|
||||
path = "~/cloud/Documents/CESE/notes";
|
||||
}
|
||||
];
|
||||
completion = {
|
||||
min_chars = 2;
|
||||
|
@ -267,6 +295,10 @@ in with lib; {
|
|||
};
|
||||
trouble.enable = true;
|
||||
lspkind.enable = true;
|
||||
lspsaga = {
|
||||
enable = true;
|
||||
lightbulb.virtualText = false;
|
||||
};
|
||||
vimtex.enable = true;
|
||||
floaterm.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue