1
0
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:
2024-03-07 22:52:11 +01:00
parent 4bfc54bcc1
commit a31ed89543
5 changed files with 36 additions and 30 deletions

View File

@@ -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")

View File

@@ -9,6 +9,7 @@ return {
markdown = { "mdformat" },
tex = { "latexindent" },
lua = { "stylua" },
yaml = { "yamlfmt" },
},
})
require("conform").formatters.latexindent = {

View File

@@ -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",
}
}
}

View File

@@ -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 = {},
},
}