[chore] update some lsp stuff and link config files
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
lsp_formatting = false,
|
||||
fallback = false,
|
||||
-- lsp_formatting = false,
|
||||
-- fallback = false,
|
||||
formatters_by_ft = {
|
||||
python = { "black" },
|
||||
go = { "goimports", "gofumpt" },
|
||||
xml = { "lemminx" },
|
||||
ruby = { "rubocop" },
|
||||
json = { "biome" },
|
||||
ruby = { "standardrb" },
|
||||
json = { "biome" , "json-lsp"},
|
||||
css = { "biome" },
|
||||
javascript = { "biome" },
|
||||
sql = { "pg_format" },
|
||||
yaml = {"hydra_lsp"}
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
|
||||
@@ -4,7 +4,7 @@ local config_path
|
||||
|
||||
-- Determine the config path based on the OS
|
||||
if os_info.is_linux then
|
||||
config_path = os.getenv("HOME") .. "/.config/nvim/ruff.toml"
|
||||
config_path = os.getenv("HOME") .. "/.config/nvim/config_files/ruff.toml"
|
||||
elseif os_info.is_windows then
|
||||
config_path = os.getenv("LOCALAPPDATA") .. "\\nvim\\ruff.toml"
|
||||
end
|
||||
|
||||
@@ -5,28 +5,8 @@ return {
|
||||
ruby_lsp = {
|
||||
mason = false,
|
||||
cmd = { os.getenv("HOME") .. "/.rbenv/shims/ruby-lsp" },
|
||||
init_options = {
|
||||
enabled_features = {
|
||||
codeActions = true,
|
||||
codeLens = true,
|
||||
completion = true,
|
||||
definition = true,
|
||||
diagnostics = true,
|
||||
documentHighlights = true,
|
||||
documentLink = true,
|
||||
documentSymbols = true,
|
||||
foldingRanges = true,
|
||||
formatting = true,
|
||||
hover = true,
|
||||
inlayHint = true,
|
||||
onTypeFormatting = true,
|
||||
selectionRanges = true,
|
||||
semanticHighlighting = true,
|
||||
signatureHelp = true,
|
||||
typeHierarchy = true,
|
||||
workspaceSymbol = true,
|
||||
},
|
||||
},
|
||||
single_file_support = false,
|
||||
root_partern = { ".git" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -16,7 +16,6 @@ return {
|
||||
"stylua",
|
||||
"lua-language-server",
|
||||
--ruby
|
||||
"ruby-lsp",
|
||||
-- bash
|
||||
"shfmt",
|
||||
-- go
|
||||
|
||||
@@ -61,7 +61,7 @@ return {
|
||||
files = {
|
||||
hidden = true,
|
||||
ignored = true,
|
||||
exclude = { "venvs/*", "*.pyc", "*.po" },
|
||||
exclude = { "venvs/*", "*.pyc", "*.po" ,"node_modules/*", "bundle/*"},
|
||||
layout = { preset = "file_telescope" },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user