nvim: move bulk of lua config to hm plugins list

This commit is contained in:
Sridhar Ratnakumar 2022-04-16 12:58:30 -04:00
parent 88a202421c
commit 99fcbdaa7e
2 changed files with 29 additions and 9 deletions

View file

@ -36,10 +36,4 @@ require('lualine').setup {
}
}
-- telescope setup
nmap("<leader>ff", ":Telescope find_files<cr>")
nmap("<leader>fg", ":Telescope live_grep<cr>")
nmap("<leader>fb", ":Telescope buffers<cr>")
nmap("<leader>fh", ":Telescope help_tags<cr>")
nmap("<leader>fz", ":Telescope zoxide list<cr>")

View file

@ -30,7 +30,6 @@
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/generated.nix
plugins = with pkgs.vimPlugins; [
# Status bar for vim
lualine-nvim
# For working mouse support when running inside tmux
terminus
@ -42,8 +41,35 @@
tokyonight-nvim
# Doom-emacs like experience
telescope-nvim
telescope-zoxide
{
plugin = telescope-nvim;
type = "lua";
config = ''
nmap("<leader>ff", ":Telescope find_files<cr>")
nmap("<leader>fg", ":Telescope live_grep<cr>")
nmap("<leader>fb", ":Telescope buffers<cr>")
nmap("<leader>fh", ":Telescope help_tags<cr>")
'';
}
{
plugin = telescope-zoxide;
type = "lua";
config = ''
nmap("<leader>fz", ":Telescope zoxide list<cr>")
'';
}
{
plugin = lualine-nvim;
type = "lua";
config = ''
require('lualine').setup {
options = {
theme = 'tokyonight'
}
}
'';
}
vim-which-key
# TODO: Don't know how to configure this correctly
# nvim-whichkey-setup-lua