Chnaged plugins and remaps

This commit is contained in:
2024-09-18 19:41:30 +02:00
parent 70ff1d105b
commit 10cf906208
5 changed files with 25 additions and 24 deletions

View File

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

View File

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

View File

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

View File

@@ -15,6 +15,8 @@ return {
"javascript",
"jsdoc",
"typescript",
"html",
"python",
"java",
"json",
"regex",

View File

@@ -21,8 +21,11 @@ local on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>vd", function()
vim.diagnostic.open_float()
end, opts("Open diagnostics"))
-- vim.keymap.set("n", "<leader>vca", function()
-- vim.lsp.buf.code_action()
-- end, opts("Get code actions"))
vim.keymap.set("n", "<leader>vca", function()
vim.lsp.buf.code_action()
require("tiny-code-action").code_action()
end, opts("Get code actions"))
vim.keymap.set("n", "<leader>vr", function()
vim.lsp.buf.rename()