mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
Merge branch 'main' of github.com:gyoder/dots
This commit is contained in:
commit
515241c264
2 changed files with 7 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ return require('packer').startup(function(use)
|
|||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
config = function() require("plugins/ts") end
|
||||
-- config = function() require("plugins/ts") end
|
||||
}
|
||||
|
||||
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", "yf", function()
|
||||
local view = vim.fn.winsaveview()
|
||||
vim.cmd("%y")
|
||||
vim.fn.winrestview(view)
|
||||
end, { desc = "Yank entire file" })
|
||||
|
||||
|
||||
-------- PLUGINS -------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue