feat(neovim): use auto-session and project-nvim instead of obsession

This commit is contained in:
Michael Mandl 2022-07-21 08:24:04 +02:00
parent 3938d6db5d
commit 29636037fb
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
4 changed files with 6 additions and 2 deletions

View file

@ -25,8 +25,8 @@
ansible-vim
# session handling
vim-obsession
vim-prosession
project-nvim
auto-session
nvim-treesitter
markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" })
@ -96,6 +96,7 @@
${builtins.readFile ./nvim-cmp.lua }
${builtins.readFile ./telescope.lua }
${builtins.readFile ./themes.lua }
${builtins.readFile ./project-nvim.lua }
EOF
'';
};

View file

@ -23,6 +23,7 @@ nnoremap("<leader>G", ":GV --all<CR>")
nnoremap("<leader>ff", "<Cmd>Telescope find_files theme=dropdown<CR>")
nnoremap("<leader>fb", "<Cmd>Telescope buffers theme=dropdown<CR>")
nnoremap("<leader>fg", "<Cmd>Telescope git_files theme=dropdown<CR>")
nnoremap("<leader>fp", "<Cmd>Telescope projects theme=dropdown<CR>")
nnoremap("<C-f>", "<Cmd>Telescope grep_string<CR>")
nnoremap("<C-g>", "<Cmd>Telescope live_grep<CR>")

View file

@ -0,0 +1 @@
require('project_nvim').setup({})

View file

@ -31,3 +31,4 @@ telescope.setup({
telescope.load_extension("fzf")
telescope.load_extension("ui-select")
telescope.load_extension("projects")