mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
refined nvim confdig
This commit is contained in:
parent
f7dff4be79
commit
b33eac0dcf
2 changed files with 7 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ return require('packer').startup(function(use)
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
config = function() require("plugins/ts") end
|
-- config = function() require("plugins/ts") end
|
||||||
}
|
}
|
||||||
|
|
||||||
use 'mbbill/undotree'
|
use 'mbbill/undotree'
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,12 @@ vim.keymap.set("n", "<leader>qf", vim.lsp.buf.format)
|
||||||
vim.keymap.set("n", "<leader>dd", vim.diagnostic.open_float)
|
vim.keymap.set("n", "<leader>dd", vim.diagnostic.open_float)
|
||||||
|
|
||||||
|
|
||||||
|
vim.keymap.set("n", "yf", function()
|
||||||
|
local view = vim.fn.winsaveview()
|
||||||
|
vim.cmd("%y")
|
||||||
|
vim.fn.winrestview(view)
|
||||||
|
end, { desc = "Yank entire file" })
|
||||||
|
|
||||||
|
|
||||||
-------- PLUGINS -------
|
-------- PLUGINS -------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue