mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
Revert "nixvim: add undofile, scrolloff, wrap, yank highlight, j/k optimization"
This reverts commit f8ae5e7d66.
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
programs.nixvim.autoCmd = [
|
|
||||||
# yank highlight
|
|
||||||
{
|
|
||||||
event = "TextYankPost";
|
|
||||||
callback.__raw = "function() vim.highlight.on_yank() end";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
./options.nix
|
./options.nix
|
||||||
./autocmds.nix
|
|
||||||
./keymaps.nix
|
./keymaps.nix
|
||||||
./language.nix
|
./language.nix
|
||||||
./colorscheme.nix
|
./colorscheme.nix
|
||||||
|
|||||||
@@ -19,23 +19,6 @@
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
programs.nixvim.keymaps = [
|
programs.nixvim.keymaps = [
|
||||||
# Search
|
|
||||||
(mk "<Esc>" "<cmd>nohlsearch<CR>" "検索ハイライトを解除")
|
|
||||||
|
|
||||||
# Screen line movement
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "j";
|
|
||||||
action.__raw = "v:count == 0 and 'gj' or 'j'";
|
|
||||||
options = { silent = true; expr = true; desc = "下へ移動(画面行優先)"; };
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mode = "n";
|
|
||||||
key = "k";
|
|
||||||
action.__raw = "v:count == 0 and 'gk' or 'k'";
|
|
||||||
options = { silent = true; expr = true; desc = "上へ移動(画面行優先)"; };
|
|
||||||
}
|
|
||||||
|
|
||||||
# LSP
|
# LSP
|
||||||
(mkRaw "K" "vim.lsp.buf.hover" "LSPエラーのホバー表示")
|
(mkRaw "K" "vim.lsp.buf.hover" "LSPエラーのホバー表示")
|
||||||
(mk "gd" "<cmd>Glance definitions<CR>" "定義へ移動")
|
(mk "gd" "<cmd>Glance definitions<CR>" "定義へ移動")
|
||||||
|
|||||||
@@ -11,12 +11,6 @@
|
|||||||
mouse = "a";
|
mouse = "a";
|
||||||
clipboard = "unnamedplus";
|
clipboard = "unnamedplus";
|
||||||
updatetime = 200;
|
updatetime = 200;
|
||||||
timeoutlen = 300;
|
|
||||||
undofile = true;
|
|
||||||
|
|
||||||
# display
|
|
||||||
wrap = false;
|
|
||||||
scrolloff = 8;
|
|
||||||
|
|
||||||
# search
|
# search
|
||||||
ignorecase = true;
|
ignorecase = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user