diff options
author | Matthew Lemon <y@yulqen.org> | 2023-08-13 17:43:41 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-08-13 17:43:41 +0100 |
commit | ec6f647bf2f0e3b68bdb8e377897a7dddff90b1f (patch) | |
tree | c44fab82c513a73663bcbf1976393da5ca080d0f | |
parent | f2c60848333761c960e28f0df7cd06fdb53f6864 (diff) |
More neovim changes
Diffstat (limited to '')
-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 | 1 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/vimtex.lua | 5 | ||||
-rw-r--r-- | nvim-primeagen/lua/lemon/packer.lua | 1 | ||||
-rw-r--r-- | nvim-primeagen/lua/lemon/remap.lua | 5 |
6 files changed, 12 insertions, 4 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 a004f9d..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, {}) 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' + diff --git a/nvim-primeagen/lua/lemon/packer.lua b/nvim-primeagen/lua/lemon/packer.lua index 83da426..5cedc4d 100644 --- a/nvim-primeagen/lua/lemon/packer.lua +++ b/nvim-primeagen/lua/lemon/packer.lua @@ -92,6 +92,7 @@ return require('packer').startup(function(use) -- use("laytan/cloak.nvim") use("jlanzarotta/bufexplorer") use("mhinz/vim-signify") + use("lervag/vimtex") use { "nvim-neotest/neotest", requires = { diff --git a/nvim-primeagen/lua/lemon/remap.lua b/nvim-primeagen/lua/lemon/remap.lua index 0d2f247..642cb69 100644 --- a/nvim-primeagen/lua/lemon/remap.lua +++ b/nvim-primeagen/lua/lemon/remap.lua @@ -1,12 +1,13 @@ -- ThePrimeagent's stuff vim.g.mapleader = " " +vim.g.maplocalleader = "," vim.keymap.set("n", "<leader>pv", vim.cmd.Ex) vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") -vim.keymap.set("n", "J", "mzJ`z") vim.keymap.set("n", "<C-d>", "<C-d>zz") +vim.keymap.set("n", "J", "mzJ`z") vim.keymap.set("n", "<C-u>", "<C-u>zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") @@ -35,7 +36,7 @@ vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz") vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true }) -vim.keymap.set("n", "<leader>ev", "<cmd>e ~/dotfiles/nvim/lua/lemon/packer.lua<CR>"); +vim.keymap.set("n", "<leader>ev", "<cmd>e ~/dotfiles/nvim-primeagen/lua/lemon/packer.lua<CR>"); vim.keymap.set("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>"); vim.keymap.set("n", "<leader><leader>", function() |