diff options
author | Matthew Lemon <y@yulqen.org> | 2023-08-13 22:12:33 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-08-13 22:12:33 +0100 |
commit | b7565663301d64cec70e62c236d6e7c2438ddb97 (patch) | |
tree | b320ffd77df5c640d9ffdf9cf441241874d848e9 /nvim-primeagen/after/plugin | |
parent | a247f1837acd20c0459abd235e0e707ce15884e1 (diff) |
Adds vimtex and view other changes
Diffstat (limited to 'nvim-primeagen/after/plugin')
-rw-r--r-- | nvim-primeagen/after/plugin/colors.lua | 2 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/harpoon.lua | 2 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/telescope.lua | 2 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/vimtex.lua | 5 |
4 files changed, 8 insertions, 3 deletions
diff --git a/nvim-primeagen/after/plugin/colors.lua b/nvim-primeagen/after/plugin/colors.lua index fe97b1b..92c8583 100644 --- a/nvim-primeagen/after/plugin/colors.lua +++ b/nvim-primeagen/after/plugin/colors.lua @@ -2,7 +2,7 @@ require('rose-pine').setup({ disable_background = true }) -function ColorMyPencils(color) +function ColorMyPencils(color) color = color or "rose-pine" vim.cmd.colorscheme(color) diff --git a/nvim-primeagen/after/plugin/harpoon.lua b/nvim-primeagen/after/plugin/harpoon.lua index 4f57af5..0cd559a 100644 --- a/nvim-primeagen/after/plugin/harpoon.lua +++ b/nvim-primeagen/after/plugin/harpoon.lua @@ -2,7 +2,7 @@ local mark = require("harpoon.mark") local ui = require("harpoon.ui") vim.keymap.set("n", "<leader>a", mark.add_file) -vim.keymap.set("n", "<leader>bh", ui.toggle_quick_menu) +vim.keymap.set("n", "<C-b>", ui.toggle_quick_menu) vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end) vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end) diff --git a/nvim-primeagen/after/plugin/telescope.lua b/nvim-primeagen/after/plugin/telescope.lua index d11622b..a8ab476 100644 --- a/nvim-primeagen/after/plugin/telescope.lua +++ b/nvim-primeagen/after/plugin/telescope.lua @@ -1,5 +1,6 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) +vim.keymap.set('n', '<C-p>', builtin.git_files, {}) vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) vim.keymap.set('n', '<leader>fb', builtin.buffers, {}) vim.keymap.set('n', '<leader>fh', builtin.help_tags, {}) @@ -8,7 +9,6 @@ vim.keymap.set('n', '<leader>fc', builtin.command_history, {}) vim.keymap.set('n', '<leader>fk', builtin.keymaps, {}) vim.keymap.set('n', '<leader>fl', builtin.diagnostics, {}) vim.keymap.set('n', '<leader>fo', builtin.builtin, {}) -vim.keymap.set('n', '<leader>f-', builtin.oldfiles, {}) vim.keymap.set('n', '<leader>ps', function() builtin.grep_string({ search = vim.fn.input("Grep > ") }) diff --git a/nvim-primeagen/after/plugin/vimtex.lua b/nvim-primeagen/after/plugin/vimtex.lua new file mode 100644 index 0000000..420bd31 --- /dev/null +++ b/nvim-primeagen/after/plugin/vimtex.lua @@ -0,0 +1,5 @@ +-- from https://github.com/lervag/vimtex + +vim.g.vimtex_view_method = 'zathura' +vim.g.vimtex_compiler_method = 'pdflatex' + |