diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-10-18 13:08:38 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-10-18 13:08:38 +0200 |
| commit | 3e9162e4a7852c60f2d60287ec34018ddb8ae1bd (patch) | |
| tree | 987d8a5b98341a46463473da951de71db202bb3b | |
| parent | 4cf201db3997201d814525c039187147ae977f16 (diff) | |
| download | dotfiles-3e9162e4a7852c60f2d60287ec34018ddb8ae1bd.tar.gz dotfiles-3e9162e4a7852c60f2d60287ec34018ddb8ae1bd.tar.bz2 dotfiles-3e9162e4a7852c60f2d60287ec34018ddb8ae1bd.zip | |
Remove comment plugin nvim
| -rw-r--r-- | config/nvim/lua/plugins.lua | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 69ee677..7a58efb 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -234,15 +234,20 @@ return require("packer").startup(function() "mrcjkb/rustaceanvim", ft = {"rust"}, config = function() + -- require("rustaceanvim") -- to toggle inlay hints -- vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) - -- vim.g.rustaceanvim.server.on_attach = on_attach vim.diagnostic.config { signs = false, update_in_insert = false, } - -- require("rustaceanvim") - -- vim.g.rustaceanvim.server.on_attach = on_attach + vim.g.rustfmt_autosave_if_config_present = 1 + -- vim.g.rustaceanvim.server.on_attach = function(_, bufnr) + -- local opts = { noremap = true, silent = true } + -- local map = function(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end + -- map("n", "<leader>me", "<cmd>RustLsp expandMacro<CR>", opts) + -- map("n", "<leader>d", "<cmd>RustLsp renderDiagnostic<CR>", opts) + -- end end, } @@ -362,14 +367,6 @@ return require("packer").startup(function() end } - -- comment text objects - use { - "numToStr/Comment.nvim", - config = function() - require("Comment").setup() - end - } - -- gruvbox color scheme use { "ellisonleao/gruvbox.nvim", |
