chore(nvim): autopairs bs map and harpoon and tpipeline fix

This commit is contained in:
Afonso Franco 2024-05-01 18:52:16 +01:00
parent eb7a612dbc
commit 970179400d
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
6 changed files with 139 additions and 6 deletions

View file

@ -3,7 +3,7 @@ local npairs = require('nvim-autopairs')
npairs.setup({
map_cr = true,
map_bs = false,
map_bs = true,
check_ts = true,
enable_check_bracket_line = true,
ignored_next_char = "[%w]"

View file

@ -0,0 +1,13 @@
local harpoon = require("harpoon")
-- REQUIRED
harpoon:setup()
-- REQUIRED
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)

View file

@ -29,6 +29,13 @@ lazy.setup({
end,
},
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
},
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
@ -38,7 +45,12 @@ lazy.setup({
end
},
"vimpostor/vim-tpipeline",
{
"vimpostor/vim-tpipeline",
config = function()
vim.g.tpipeline_restore = 1
end
},
{
"TobinPalmer/pastify.nvim",

View file

@ -12,7 +12,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
callback = function(ev)
-- Enable completion triggered by <c-x><c-o>
vim.bo[ev.buf].omnifunc = "v:lua.vim.lsp.omnifunc"
vim.opt_local.signcolumn=numbers
vim.opt_local.signcolumn = numbers
local telescope = require("telescope.builtin")
local conform = require("conform")
@ -106,6 +106,11 @@ mason_lspconfig.setup_handlers({
-- rest of your on_attach process.
require("ltex_extra").setup()
end,
settings = {
ltex = {
language = "en-US",
},
},
})
end,
["basedpyright"] = function()

View file

@ -13,10 +13,10 @@ telescope.setup {
pickers = {
find_files = {
previewer = false,
layout_strategy = "vertical",
layout_config = {
layout_strategy = "center",
layout_config = {
height = 0.7,
width = 0.5
width = 0.5
},
},
live_grep = {