added yanky
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
{
|
{
|
||||||
programs.nixvim.autoCmd = [
|
programs.nixvim.autoCmd = [
|
||||||
# Vertically center document when entering insert mode
|
|
||||||
{
|
|
||||||
event = "InsertEnter";
|
|
||||||
command = "norm zz";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Open help in a vertical split
|
# Open help in a vertical split
|
||||||
{
|
{
|
||||||
event = "FileType";
|
event = "FileType";
|
||||||
@@ -21,7 +15,7 @@
|
|||||||
"latex"
|
"latex"
|
||||||
"markdown"
|
"markdown"
|
||||||
];
|
];
|
||||||
command = "setlocal spell spelllang=en,fr";
|
command = "setlocal spell spelllang=en,se";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
inherit action key;
|
inherit action key;
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
|
# "<C-c>" = "<cmd> %y+ <CR>";
|
||||||
"<Space>" = "<NOP>";
|
"<Space>" = "<NOP>";
|
||||||
|
|
||||||
# Esc to clear search results
|
# Esc to clear search results
|
||||||
@@ -73,9 +74,18 @@
|
|||||||
"K" = ":m '<-2<CR>gv=gv";
|
"K" = ":m '<-2<CR>gv=gv";
|
||||||
"J" = ":m '>+1<CR>gv=gv";
|
"J" = ":m '>+1<CR>gv=gv";
|
||||||
};
|
};
|
||||||
|
insert =
|
||||||
|
lib.mapAttrsToList
|
||||||
|
(key: action: {
|
||||||
|
mode = "i";
|
||||||
|
inherit action key;
|
||||||
|
})
|
||||||
|
{
|
||||||
|
"<C-v>" = "<esc>p";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
config.nixvim.helpers.keymaps.mkKeymaps
|
config.nixvim.helpers.keymaps.mkKeymaps
|
||||||
{options.silent = true;}
|
{options.silent = true;}
|
||||||
(normal ++ visual);
|
(normal ++ visual ++ insert);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,10 +37,10 @@
|
|||||||
smartcase = true; # Override the 'ignorecase' option if the search pattern contains upper
|
smartcase = true; # Override the 'ignorecase' option if the search pattern contains upper
|
||||||
# case characters
|
# case characters
|
||||||
scrolloff = 8; # Number of screen lines to show around the cursor
|
scrolloff = 8; # Number of screen lines to show around the cursor
|
||||||
cursorline = false; # Highlight the screen line of the cursor
|
cursorline = true; # Highlight the screen line of the cursor
|
||||||
cursorcolumn = false; # Highlight the screen column of the cursor
|
cursorcolumn = false; # Highlight the screen column of the cursor
|
||||||
signcolumn = "yes"; # Whether to show the signcolumn
|
signcolumn = "yes"; # Whether to show the signcolumn
|
||||||
colorcolumn = "100"; # Columns to highlight
|
colorcolumn = ""; # Columns to highlight
|
||||||
laststatus = 3; # When to use a status line for the last window
|
laststatus = 3; # When to use a status line for the last window
|
||||||
fileencoding = "utf-8"; # File-content encoding for the current buffer
|
fileencoding = "utf-8"; # File-content encoding for the current buffer
|
||||||
termguicolors = true; # Enables 24-bit RGB color in the |TUI|
|
termguicolors = true; # Enables 24-bit RGB color in the |TUI|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
plugins.conform-nvim = {
|
programs.nixvim.plugins.conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
formatOnSave = {
|
formatOnSave = {
|
||||||
lspFallback = true;
|
lspFallback = true;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./barbar.nix
|
./barbar.nix
|
||||||
./comment.nix
|
./comment.nix
|
||||||
@@ -17,10 +16,10 @@
|
|||||||
./vimtex.nix
|
./vimtex.nix
|
||||||
./nonels.nix
|
./nonels.nix
|
||||||
./conform.nix
|
./conform.nix
|
||||||
|
./yanky.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
|
|
||||||
extraPlugins = [pkgs.vimPlugins.gruvbox-material];
|
extraPlugins = [pkgs.vimPlugins.gruvbox-material];
|
||||||
colorscheme = "gruvbox-material";
|
colorscheme = "gruvbox-material";
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
# Language server
|
# Language server
|
||||||
servers = {
|
servers = {
|
||||||
# Average webdev LSPs
|
# Average webdev LSPs
|
||||||
tsserver.enable = false; # TS/JS
|
|
||||||
cssls.enable = true; # CSS
|
cssls.enable = true; # CSS
|
||||||
tailwindcss.enable = true; # TailwindCSS
|
tailwindcss.enable = true; # TailwindCSS
|
||||||
html.enable = true; # HTML
|
html.enable = true; # HTML
|
||||||
@@ -59,8 +58,13 @@
|
|||||||
lua-ls = {
|
lua-ls = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.telemetry.enable = false;
|
settings.telemetry.enable = false;
|
||||||
|
settings.diagnostics = {
|
||||||
|
globals = ["vim"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
tsserver = {
|
||||||
|
enable = false; # TS/JS
|
||||||
};
|
};
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
rust-analyzer = {
|
rust-analyzer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -76,5 +80,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
programs.nixvim.plugins.lualine = {
|
programs.nixvim.plugins.lualine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
theme = "gruvbox-material";
|
||||||
|
|
||||||
globalstatus = true;
|
globalstatus = true;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
programs.nixvim.plugins.none-ls = {
|
||||||
programs.nixvim.plugins.none-ls = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
cmd = ["bash -c nvim"];
|
cmd = ["bash -c nvim"];
|
||||||
@@ -34,7 +33,6 @@ programs.nixvim.plugins.none-ls = {
|
|||||||
extra_args = { "--fast" },
|
extra_args = { "--fast" },
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
completion = {
|
completion = {
|
||||||
@@ -43,4 +41,4 @@ programs.nixvim.plugins.none-ls = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
5
home/extra/neovim/plugins/yanky.nix
Normal file
5
home/extra/neovim/plugins/yanky.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.yanky = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user