Improve neovim-specific configs
This commit is contained in:
parent
531786f609
commit
0b63872d62
7 changed files with 29 additions and 1 deletions
2
.bin/.e
2
.bin/.e
|
@ -14,7 +14,7 @@ declare -A mapper=(
|
|||
["git-ignore"]="$HOME/.config/git/ignore"
|
||||
["home-manager"]="$HOME/.config/home-manager/home.nix"
|
||||
["nvim"]="$HOME/.config/nvim/"
|
||||
["nvim.packer"]="$HOME/.config/nvim/lua/user/packer.lua"
|
||||
["nvim.packer"]="$HOME/.config/nvim/lua/plugins.lua"
|
||||
["polybar"]="$HOME/.config/polybar"
|
||||
["qutebrowser"]="$HOME/.config/qutebrowser/common.py"
|
||||
["starship"]="$HOME/.config/starship.toml"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
dasel # tool to manage yq, jq, toml and more
|
||||
direnv # tool to load custom environments
|
||||
docker-credential-helpers
|
||||
doggo # dns client
|
||||
exa # ls-alternative
|
||||
faas-cli # cli for openfaas
|
||||
fzf # fuzzy finder
|
||||
|
|
10
.config/home-manager/nvim.nix
Normal file
10
.config/home-manager/nvim.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
nodejs # needed for lsp
|
||||
fzf # fuzzy finder
|
||||
neovim # alternative to vim
|
||||
];
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
imports = [
|
||||
./common.nix
|
||||
./graphical.nix
|
||||
./nvim.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -18,6 +18,7 @@ return require('packer').startup(function(use)
|
|||
run = ':TSUpdate'
|
||||
})
|
||||
|
||||
use("github/copilot.vim")
|
||||
use("mbbill/undotree")
|
||||
use("Wansmer/sibling-swap.nvim")
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ vim.opt.undofile = true
|
|||
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.wildmode = "longest,list,full"
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
|
@ -32,3 +33,13 @@ vim.opt.isfname:append("@-@")
|
|||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
|
||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
group = vim.api.nvim_create_augroup('highlight_yank', {}),
|
||||
desc = 'Hightlight selection on yank',
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
vim.highlight.on_yank { higroup = 'IncSearch', timeout = 250 }
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -110,6 +110,10 @@ super + {_,shift + }{h,j,k,l}
|
|||
super + Tab
|
||||
bspc desktop -f last
|
||||
|
||||
# focus the next/previous node in the current desktop
|
||||
super + {_,shift + }c
|
||||
bspc node -f {next,prev}.local
|
||||
|
||||
# focus or send to the given desktop
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
|
Loading…
Reference in a new issue