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

main
mandlm 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 ansible-vim
# session handling # session handling
vim-obsession project-nvim
vim-prosession auto-session
nvim-treesitter nvim-treesitter
markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" }) markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" })
@ -96,6 +96,7 @@
${builtins.readFile ./nvim-cmp.lua } ${builtins.readFile ./nvim-cmp.lua }
${builtins.readFile ./telescope.lua } ${builtins.readFile ./telescope.lua }
${builtins.readFile ./themes.lua } ${builtins.readFile ./themes.lua }
${builtins.readFile ./project-nvim.lua }
EOF 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>ff", "<Cmd>Telescope find_files theme=dropdown<CR>")
nnoremap("<leader>fb", "<Cmd>Telescope buffers theme=dropdown<CR>") nnoremap("<leader>fb", "<Cmd>Telescope buffers theme=dropdown<CR>")
nnoremap("<leader>fg", "<Cmd>Telescope git_files 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-f>", "<Cmd>Telescope grep_string<CR>")
nnoremap("<C-g>", "<Cmd>Telescope live_grep<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("fzf")
telescope.load_extension("ui-select") telescope.load_extension("ui-select")
telescope.load_extension("projects")