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