diff --git a/home/neovim.lua b/home/neovim.lua index e5560f5..d99b6af 100644 --- a/home/neovim.lua +++ b/home/neovim.lua @@ -36,10 +36,4 @@ require('lualine').setup { } } --- telescope setup -nmap("ff", ":Telescope find_files") -nmap("fg", ":Telescope live_grep") -nmap("fb", ":Telescope buffers") -nmap("fh", ":Telescope help_tags") -nmap("fz", ":Telescope zoxide list") diff --git a/home/neovim.nix b/home/neovim.nix index 3c40e45..bd864bb 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -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("ff", ":Telescope find_files") + nmap("fg", ":Telescope live_grep") + nmap("fb", ":Telescope buffers") + nmap("fh", ":Telescope help_tags") + ''; + } + { + plugin = telescope-zoxide; + type = "lua"; + config = '' + nmap("fz", ":Telescope zoxide list") + ''; + } + { + 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