Better binds and terminal support

This commit is contained in:
2026-06-12 08:42:11 +02:00
parent 69527e3d61
commit 51fb1aec9d
2 changed files with 63 additions and 4 deletions
+5 -4
View File
@@ -67,13 +67,12 @@ vim.cmd.colorscheme('vague')
-- Lsp specific, uses nvim-lspconfigs with the below
vim.lsp.enable({ "gopls", "ols" })
map("n", "gd", ":lua vim.lsp.buf.definition()<CR>")
map("n", "ld", ":lua vim.diagnostic.open_float()<CR>")
map("n", "lr", ":lua vim.lsp.buf.rename()<CR>")
map("n", "la", ":lua vim.lsp.buf.code_action()<CR>")
map("n", "gr", ":lua vim.lsp.buf.rename()<CR>")
map("n", "ga", ":lua vim.lsp.buf.code_action()<CR>")
require("fzf-lua").setup({})
map("n", "<C-p>", ":FzfLua files<CR>")
map("n", "<C-o>", ":FzfLua buffers<CR>")
map("n", "<C-m>", ":FzfLua buffers<CR>")
map("n", "<C-i>", ":FzfLua diagnostics_workspace<CR>")
map("n", "<C-f>", ":FzfLua live_grep<CR>")
map("n", "<C-b>", ":FzfLua grep_curbuf<CR>")
@@ -109,3 +108,5 @@ vim.api.nvim_create_autocmd("BufWritePre", {
vim.fn.setpos(".", save_cursor)
end,
})
require("terminal")