mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 20:17:12 +08:00
Stash neovim config WIP
This commit is contained in:
parent
8c0fb0bc95
commit
0645f5c774
2 changed files with 27 additions and 3 deletions
28
home.nix
28
home.nix
|
|
@ -96,7 +96,8 @@ in
|
|||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "tokyonight.nvim";
|
||||
src = inputs.tokyonight;
|
||||
})
|
||||
}) # This doesn't render colors well
|
||||
onedark-vim
|
||||
|
||||
# TODO: comment
|
||||
vim-airline
|
||||
|
|
@ -112,11 +113,28 @@ in
|
|||
];
|
||||
|
||||
extraConfig = ''
|
||||
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
|
||||
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
|
||||
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
|
||||
if (empty($TMUX))
|
||||
if (has("nvim"))
|
||||
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
|
||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
endif
|
||||
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
|
||||
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
|
||||
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
|
||||
if (has("termguicolors"))
|
||||
set termguicolors
|
||||
endif
|
||||
endif
|
||||
|
||||
" papercolor-theme
|
||||
" set t_Co=256 " This is may or may not needed.
|
||||
" set background=light
|
||||
let g:tokyonight_style = "day"
|
||||
colorscheme tokyonight
|
||||
" let g:tokyonight_style = "day"
|
||||
syntax on
|
||||
colorscheme onedark
|
||||
|
||||
" Find files using Telescope command-line sugar.
|
||||
nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
|
||||
|
|
@ -126,6 +144,10 @@ in
|
|||
|
||||
" IDE
|
||||
lua require'lspconfig'.hls.setup{}
|
||||
|
||||
"Markdown
|
||||
let g:vim_markdown_new_list_item_indent = 2
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@
|
|||
vlc
|
||||
vscode
|
||||
mpv
|
||||
alacritty
|
||||
fractal
|
||||
];
|
||||
|
||||
services = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue