1
0

Merge branch 'main' of rpuzonas.com:rpuzonas/neovim-config into main

This commit is contained in:
Rokas Puzonas 2023-08-08 10:48:23 +03:00
commit a1a860d587
4 changed files with 49 additions and 0 deletions

View File

@ -1,5 +1,7 @@
local cmd = vim.cmd
table.unpack = unpack
-- Allow loading */init.lua files
package.path = "./?/init.lua;"..package.path

10
lua/config/escape.lua Normal file
View File

@ -0,0 +1,10 @@
return {
"m-gail/escape.nvim",
config = function()
local escape = require("escape").escape
require("legendary").keymaps{
{"<leader>e", escape, description="Escape quotes", mode={"v"}, opts={noremap=true,silent = true}}
}
end
}

33
lua/config/navbuddy.lua Normal file
View File

@ -0,0 +1,33 @@
return {
"SmiteshP/nvim-navbuddy",
requires = {
"neovim/nvim-lspconfig",
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"nvim-telescope/telescope.nvim"
},
config = function()
local navbuddy = require("nvim-navbuddy")
require("legendary").keymaps{
{"<leader>o", ":Navbuddy<CR>", description="Navbuddy"}
}
navbuddy.setup {
window = {
border = "rounded",
size = "60%",
position = "50%",
sections = {
left = { size = "20%" },
mid = { size = "40%" },
right = { preview = "leaf" }
},
},
node_markers = { enabled = true },
use_default_mappings = true,
lsp = { auto_attach = true }
}
end
}

View File

@ -33,6 +33,8 @@ return function(use)
use_config "diffview"
use_config "git-conflict"
use_config "doxygen-tk"
use_config "navbuddy"
use_config "escape"
-- use_config "ufo"
use {
@ -74,6 +76,8 @@ return function(use)
config_name = "luapad"
}
use "krady21/compiler-explorer.nvim"
use "kevinhwang91/nvim-bqf"
use "tpope/vim-eunuch"
use "christoomey/vim-tmux-navigator"
use "eandrju/cellular-automaton.nvim"