mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-26 18:18:46 +08:00
WIP vim config
This commit is contained in:
parent
4c7c125078
commit
8c0fb0bc95
3 changed files with 47 additions and 6 deletions
19
flake.lock
generated
19
flake.lock
generated
|
|
@ -277,7 +277,8 @@
|
|||
"home-manager": "home-manager",
|
||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"tokyonight": "tokyonight"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
|
|
@ -299,6 +300,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tokyonight": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1620382079,
|
||||
"narHash": "sha256-ny87pRVy9mWAz+aSBWToj9NntGARDgmCKW2zhLIK25E=",
|
||||
"owner": "folke",
|
||||
"repo": "tokyonight.nvim",
|
||||
"rev": "529e6d9f325c82c0b40f8d8b329c6c310a6114c3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "folke",
|
||||
"repo": "tokyonight.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"locked": {
|
||||
"lastModified": 1617631617,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
himalaya.url = "github:soywod/himalaya";
|
||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||
|
||||
#Vim plugins
|
||||
tokyonight = {
|
||||
url = "github:folke/tokyonight.nvim";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, home-manager, nixpkgs, ... }:
|
||||
|
|
|
|||
28
home.nix
28
home.nix
|
|
@ -82,11 +82,25 @@ in
|
|||
];
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
# Language support
|
||||
vim-nix
|
||||
vim-markdown
|
||||
# status bar / tabline
|
||||
|
||||
# IDE support
|
||||
completion-nvim # A async completion framework aims to provide completion to neovim's built in LSP written in Lua
|
||||
lsp-status-nvim
|
||||
nvim-treesitter # syntax highlighting
|
||||
nvim-lspconfig
|
||||
|
||||
# Theme
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "tokyonight.nvim";
|
||||
src = inputs.tokyonight;
|
||||
})
|
||||
|
||||
# TODO: comment
|
||||
vim-airline
|
||||
papercolor-theme
|
||||
# papercolor-theme
|
||||
fzf-vim
|
||||
ale
|
||||
telescope-nvim
|
||||
|
|
@ -99,15 +113,19 @@ in
|
|||
|
||||
extraConfig = ''
|
||||
" papercolor-theme
|
||||
set t_Co=256 " This is may or may not needed.
|
||||
set background=light
|
||||
colorscheme PaperColor
|
||||
" set t_Co=256 " This is may or may not needed.
|
||||
" set background=light
|
||||
let g:tokyonight_style = "day"
|
||||
colorscheme tokyonight
|
||||
|
||||
" Find files using Telescope command-line sugar.
|
||||
nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
|
||||
nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep()<cr>
|
||||
nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr>
|
||||
nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>
|
||||
|
||||
" IDE
|
||||
lua require'lspconfig'.hls.setup{}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue