chore: remove lsp.folders module

This commit is contained in:
Mariano Z. 2024-12-26 11:49:21 -03:00
parent 06489e1075
commit 2ffef85e64
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
17 changed files with 64 additions and 301 deletions

View file

@ -5,7 +5,6 @@ return {
init = function()
-- This option is required.
vim.g["chezmoi#use_tmp_buffer"] = true
-- add other options here if needed.
end,
},
{

View file

@ -5,34 +5,35 @@ local M = {
"JoosepAlviste/nvim-ts-context-commentstring",
event = "VeryLazy",
},
config = function()
vim.g.skip_ts_context_commentstring_module = true
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
opleader = {
line = "gc",
block = "gC",
},
mappings = {
basic = true,
},
})
end,
},
{
"folke/todo-comments.nvim",
config = function()
require("todo-comments").setup({
keywords = {
FUCK = { icon = "󰇷 ", color = "error" },
SHITTY = { icon = "󰇷 ", color = "error" },
},
})
end,
},
{ "folke/todo-comments.nvim" },
}
M.config = function()
vim.g.skip_ts_context_commentstring_module = true
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
opleader = {
line = "gc",
block = "gC",
},
mappings = {
basic = true,
},
})
require("todo-comments").setup({
keywords = {
FUCK = { icon = "󰇷 ", color = "error" },
SHITTY = { icon = "󰇷 ", color = "error" },
},
})
end
return M

View file

@ -1,30 +1,31 @@
local M = {
{ "lewis6991/gitsigns.nvim" },
{
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup({
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
current_line_blame = true,
signs = {
add = { text = icons.ui.BoldLineMiddle },
change = { text = icons.ui.BoldLineDashedMiddle },
delete = { text = icons.ui.TriangleShortArrowRight },
topdelete = { text = icons.ui.TriangleShortArrowRight },
changedelete = { text = icons.ui.BoldLineMiddle },
},
})
end,
},
{
"ruifm/gitlinker.nvim",
config = function()
require("gitlinker").setup({
message = false,
console_log = false,
})
nmap("<leader>gy", "<cmd>lua require('gitlinker').get_buf_range_url('n')<cr>")
end,
},
}
M.config = function()
require("gitsigns").setup({
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
current_line_blame = true,
signs = {
add = { text = icons.ui.BoldLineMiddle },
change = { text = icons.ui.BoldLineDashedMiddle },
delete = { text = icons.ui.TriangleShortArrowRight },
topdelete = { text = icons.ui.TriangleShortArrowRight },
changedelete = { text = icons.ui.BoldLineMiddle },
},
})
require("gitlinker").setup({
message = false,
console_log = false,
})
nmap("<leader>gy", "<cmd>lua require('gitlinker').get_buf_range_url('n')<cr>")
namp("<leader>gY", "<cmd>lua require('gitlinker').get_buf_range_url('n', 'blame')<cr>")
end
return M

View file

@ -1,7 +1,6 @@
local M = {
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = {
"nvim-lua/plenary.nvim",
},

View file

@ -1,3 +1,11 @@
local M = { "ethanholz/nvim-lastplace" }
M.config = function()
require("nvim-lastplace").setup({
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
lastplace_ignore_filetype = { "gitcommit", "gitrebase", "svn", "hgcommit" },
lastplace_open_folds = true,
})
end
return M

View file

@ -130,7 +130,7 @@ function M.config()
}
-- Load server-specific configuration if it exists
local ok, server_opts = pcall(require, "plugins.lsp.servers." .. server_name)
local ok, server_opts = pcall(require, "config.lsp." .. server_name)
if ok then
base_opts = vim.tbl_deep_extend("force", base_opts, server_opts)
end

View file

@ -1,15 +0,0 @@
return {
settings = {
gopls = {
gofumpt = true, -- https://github.com/mvdan/gofumpt a stricter gofmt
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedparams = true,
},
},
},
flags = {
debounce_text_changes = 150, -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md#change-detection
},
}

View file

@ -1,3 +0,0 @@
return {
filetypes = { "html", "templ" },
}

View file

@ -1,3 +0,0 @@
return {
filetypes = { "html", "templ" },
}

View file

@ -1,16 +0,0 @@
return {
settings = {
json = {
schemas = require("schemastore").json.schemas(),
},
},
setup = {
commands = {
Format = {
function()
vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line("$"), 0 })
end,
},
},
},
}

View file

@ -1,21 +0,0 @@
return {
settings = {
Lua = {
format = {
enable = false,
},
hint = {
enable = false,
arrayIndex = "Disable", -- "Enable" | "Auto" | "Disable"
await = true,
paramName = "Disable", -- "All" | "Literal" | "Disable"
paramType = true,
semicolon = "All", -- "All" | "SameLine" | "Disable"
setType = false,
},
telemetry = {
enable = false,
},
},
},
}

View file

@ -1,7 +0,0 @@
return {
settings = {
enable_roslyn_analyzers = true,
organize_imports_on_format = true,
enable_import_completion = true,
},
}

View file

@ -1,21 +0,0 @@
return {
settings = {
yaml = {
schemaStore = {
-- You must disable built-in schemaStore support if you want to use
-- this plugin and its advanced options like `ignore`.
enable = false,
-- Avoid TypeError: Cannot read properties of undefined (reading 'length')
url = "",
},
schemas = require("schemastore").yaml.schemas({
-- additional schemas (not in the catalog)
extra = {
url = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/application_v1alpha1.json",
name = "Argo CD Application",
fileMatch = "argocd-application.yaml",
},
}),
},
},
}

View file

@ -1,5 +1,4 @@
local M = {
{
"echasnovski/mini.icons",
init = function()

View file

@ -4,10 +4,12 @@ local M = {
M.config = function()
local startify = require("alpha.themes.startify")
startify.section.bottom_buttons.val = {
startify.button("e", "New file", "<cmd>ene <CR>"),
startify.button("q", "Quit", "<cmd>q <CR>"),
}
require("alpha").setup(startify.config)
end