added keybindings for easy tab navigation (see lua/409/remap.lua), fixed
goto definition delay
This commit is contained in:
@@ -62,7 +62,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||||||
callback = function(args)
|
callback = function(args)
|
||||||
local bufnr = args.buf
|
local bufnr = args.buf
|
||||||
|
|
||||||
local opts = { buffer = bufnr, remap = false }
|
local opts = { buffer = bufnr, remap = false, nowait = true }
|
||||||
|
|
||||||
vim.keymap.set("n", "gd", function()
|
vim.keymap.set("n", "gd", function()
|
||||||
vim.lsp.buf.definition()
|
vim.lsp.buf.definition()
|
||||||
|
|||||||
@@ -1,9 +1,27 @@
|
|||||||
require 'nvim-treesitter.configs'.setup {
|
require("nvim-treesitter.configs").setup({
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||||
ensure_installed = { "javascript", "typescript", "c", "lua", "vim", "vimdoc", "query", "c_sharp", "css", "gitcommit", "html", "svelte", "yaml", "astro", "toml", "jsdoc", "json" },
|
ensure_installed = {
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"c",
|
||||||
|
"lua",
|
||||||
|
"vim",
|
||||||
|
"vimdoc",
|
||||||
|
"query",
|
||||||
|
"c_sharp",
|
||||||
|
"css",
|
||||||
|
"gitcommit",
|
||||||
|
"html",
|
||||||
|
"svelte",
|
||||||
|
"yaml",
|
||||||
|
"astro",
|
||||||
|
"toml",
|
||||||
|
"jsdoc",
|
||||||
|
"json",
|
||||||
|
},
|
||||||
|
|
||||||
tree_docs = {
|
tree_docs = {
|
||||||
enable = true
|
enable = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
@@ -24,6 +42,6 @@ require 'nvim-treesitter.configs'.setup {
|
|||||||
},
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = { 'yaml' }
|
disable = { "yaml" },
|
||||||
}
|
},
|
||||||
}
|
})
|
||||||
|
|||||||
@@ -37,7 +37,12 @@ vim.keymap.set("n", "<leader><leader>", function()
|
|||||||
vim.cmd("so")
|
vim.cmd("so")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.keymap.set({ "n", "x" }, "<C-h>", "<cmd> TmuxNavigateLeft<CR>");
|
vim.keymap.set({ "n", "x" }, "<C-h>", "<cmd> TmuxNavigateLeft<CR>")
|
||||||
vim.keymap.set({ "n", "x" }, "<C-l>", "<cmd> TmuxNavigateRight<CR>");
|
vim.keymap.set({ "n", "x" }, "<C-l>", "<cmd> TmuxNavigateRight<CR>")
|
||||||
vim.keymap.set({ "n", "x" }, "<C-j>", "<cmd> TmuxNavigateDown<CR>");
|
vim.keymap.set({ "n", "x" }, "<C-j>", "<cmd> TmuxNavigateDown<CR>")
|
||||||
vim.keymap.set({ "n", "x" }, "<C-k>", "<cmd> TmuxNavigateUp<CR>");
|
vim.keymap.set({ "n", "x" }, "<C-k>", "<cmd> TmuxNavigateUp<CR>")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<Tab>", "gt")
|
||||||
|
vim.keymap.set("n", "<S-Tab>", "gT")
|
||||||
|
vim.keymap.set("n", "<A-Tab>", "<cmd>:tabclose<CR>")
|
||||||
|
vim.keymap.set("n", "<leader><Tab>", "<cmd>:tabnew<CR>")
|
||||||
|
|||||||
@@ -254,14 +254,14 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
-- Config for: Comment.nvim
|
|
||||||
time([[Config for Comment.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
|
|
||||||
time([[Config for Comment.nvim]], false)
|
|
||||||
-- Config for: barbecue.nvim
|
-- Config for: barbecue.nvim
|
||||||
time([[Config for barbecue.nvim]], true)
|
time([[Config for barbecue.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rbarbecue\frequire\0", "config", "barbecue.nvim")
|
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rbarbecue\frequire\0", "config", "barbecue.nvim")
|
||||||
time([[Config for barbecue.nvim]], false)
|
time([[Config for barbecue.nvim]], false)
|
||||||
|
-- Config for: Comment.nvim
|
||||||
|
time([[Config for Comment.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
|
||||||
|
time([[Config for Comment.nvim]], false)
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
_G._packer.inside_compile = false
|
||||||
if _G._packer.needs_bufread == true then
|
if _G._packer.needs_bufread == true then
|
||||||
|
|||||||
Reference in New Issue
Block a user