mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: updated plugins and restored renamer functionality
This commit is contained in:
@@ -95,7 +95,7 @@ m.nnoremap("K", vim.lsp.buf.hover(), "LSP: show documentation")
|
||||
m.nnoremap("<F8>", function() require("conform").format({ async = true, lsp_fallback = true }) end, "LSP: format")
|
||||
|
||||
-- filipdutescu/renamer.nvim
|
||||
m.nnoremap("<F5>", require("renamer").rename, "LSP: rename")
|
||||
m.nnoremap("<F5>", function() require("renamer").rename() end, "LSP: rename")
|
||||
|
||||
-- nvim-telescope/telescope.nvim
|
||||
m.nnoremap("<F4>", ':Telescope find_files<CR>', "Telescope: find files")
|
||||
|
@@ -9,6 +9,7 @@ return {
|
||||
markdown = { "mdformat" },
|
||||
tex = { "latexindent" },
|
||||
lua = { "stylua" },
|
||||
yaml = { "yamlfmt" },
|
||||
},
|
||||
})
|
||||
require("conform").formatters.latexindent = {
|
||||
|
@@ -17,6 +17,8 @@ return {
|
||||
-- python
|
||||
require("null-ls").builtins.formatting.isort,
|
||||
require("null-ls").builtins.formatting.yapf,
|
||||
-- yaml
|
||||
require("null-ls").builtins.formatting.yamlfmt,
|
||||
}
|
||||
})
|
||||
end
|
||||
@@ -35,6 +37,8 @@ return {
|
||||
-- python
|
||||
"isort",
|
||||
"yapf",
|
||||
-- yaml
|
||||
"yamlfmt",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,8 +1,9 @@
|
||||
return {
|
||||
-- improved gui for renaming
|
||||
{
|
||||
'filipdutescu/renamer.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
opts = {}
|
||||
}
|
||||
"filipdutescu/renamer.nvim",
|
||||
branch = "master",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user