From 10cf906208bee4bbb4228d25de8491615501b078 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 18 Sep 2024 19:41:30 +0200 Subject: [PATCH] Chnaged plugins and remaps --- lua/taken/plugins/lsp/tinylspactions.lua | 13 +++++++++++++ lua/taken/plugins/obsidian.lua | 23 ----------------------- lua/taken/plugins/otherplugins.lua | 6 ++++++ lua/taken/plugins/treesitter.lua | 2 ++ lua/taken/utils/on_attach.lua | 5 ++++- 5 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 lua/taken/plugins/lsp/tinylspactions.lua delete mode 100644 lua/taken/plugins/obsidian.lua diff --git a/lua/taken/plugins/lsp/tinylspactions.lua b/lua/taken/plugins/lsp/tinylspactions.lua new file mode 100644 index 0000000..a5b7d83 --- /dev/null +++ b/lua/taken/plugins/lsp/tinylspactions.lua @@ -0,0 +1,13 @@ +return { + "rachartier/tiny-code-action.nvim", + dependencies = { + { "nvim-lua/plenary.nvim" }, + { "nvim-telescope/telescope.nvim" }, + }, + event = "LspAttach", + config = function() + require("tiny-code-action").setup({ + backend = "delta", + }) + end, +} diff --git a/lua/taken/plugins/obsidian.lua b/lua/taken/plugins/obsidian.lua deleted file mode 100644 index dc04f7e..0000000 --- a/lua/taken/plugins/obsidian.lua +++ /dev/null @@ -1,23 +0,0 @@ ---- @type LazyPluginSpec -return { - "epwalsh/obsidian.nvim", - version = "*", - lazy = true, - ft = "markdown", - dependencies = { - "nvim-lua/plenary.nvim", - }, - config = function() - local obsidian = require("obsidian") - - obsidian.setup({ - workspaces = { - { - name = "Main", - path = "~/obsidian/Main", - }, - }, - }) - vim.opt_local.conceallevel = 2 - end, -} diff --git a/lua/taken/plugins/otherplugins.lua b/lua/taken/plugins/otherplugins.lua index 4e83af6..8605c30 100644 --- a/lua/taken/plugins/otherplugins.lua +++ b/lua/taken/plugins/otherplugins.lua @@ -11,6 +11,12 @@ return { "nvim-telescope/telescope-fzf-native.nvim", }, }, + { + "OXY2DEV/markview.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + }, { "chrisgrieser/nvim-scissors", dependencies = "nvim-telescope/telescope.nvim", diff --git a/lua/taken/plugins/treesitter.lua b/lua/taken/plugins/treesitter.lua index f64ff66..dcd2add 100644 --- a/lua/taken/plugins/treesitter.lua +++ b/lua/taken/plugins/treesitter.lua @@ -15,6 +15,8 @@ return { "javascript", "jsdoc", "typescript", + "html", + "python", "java", "json", "regex", diff --git a/lua/taken/utils/on_attach.lua b/lua/taken/utils/on_attach.lua index 6ab6e79..66a3b23 100644 --- a/lua/taken/utils/on_attach.lua +++ b/lua/taken/utils/on_attach.lua @@ -21,8 +21,11 @@ local on_attach = function(client, bufnr) vim.keymap.set("n", "vd", function() vim.diagnostic.open_float() end, opts("Open diagnostics")) + -- vim.keymap.set("n", "vca", function() + -- vim.lsp.buf.code_action() + -- end, opts("Get code actions")) vim.keymap.set("n", "vca", function() - vim.lsp.buf.code_action() + require("tiny-code-action").code_action() end, opts("Get code actions")) vim.keymap.set("n", "vr", function() vim.lsp.buf.rename()