[chore] update some lsp stuff and link config files
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
"lazyvim.plugins.extras.lang.json",
|
|
||||||
"lazyvim.plugins.extras.lang.markdown"
|
|
||||||
],
|
],
|
||||||
"install_version": 7,
|
"install_version": 7,
|
||||||
"news": {
|
"news": {
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
lsp_formatting = false,
|
-- lsp_formatting = false,
|
||||||
fallback = false,
|
-- fallback = false,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
python = { "black" },
|
python = { "black" },
|
||||||
go = { "goimports", "gofumpt" },
|
go = { "goimports", "gofumpt" },
|
||||||
xml = { "lemminx" },
|
xml = { "lemminx" },
|
||||||
ruby = { "rubocop" },
|
ruby = { "standardrb" },
|
||||||
json = { "biome" },
|
json = { "biome" , "json-lsp"},
|
||||||
css = { "biome" },
|
css = { "biome" },
|
||||||
javascript = { "biome" },
|
javascript = { "biome" },
|
||||||
|
sql = { "pg_format" },
|
||||||
|
yaml = {"hydra_lsp"}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ local config_path
|
|||||||
|
|
||||||
-- Determine the config path based on the OS
|
-- Determine the config path based on the OS
|
||||||
if os_info.is_linux then
|
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
|
elseif os_info.is_windows then
|
||||||
config_path = os.getenv("LOCALAPPDATA") .. "\\nvim\\ruff.toml"
|
config_path = os.getenv("LOCALAPPDATA") .. "\\nvim\\ruff.toml"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,28 +5,8 @@ return {
|
|||||||
ruby_lsp = {
|
ruby_lsp = {
|
||||||
mason = false,
|
mason = false,
|
||||||
cmd = { os.getenv("HOME") .. "/.rbenv/shims/ruby-lsp" },
|
cmd = { os.getenv("HOME") .. "/.rbenv/shims/ruby-lsp" },
|
||||||
init_options = {
|
single_file_support = false,
|
||||||
enabled_features = {
|
root_partern = { ".git" },
|
||||||
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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ return {
|
|||||||
"stylua",
|
"stylua",
|
||||||
"lua-language-server",
|
"lua-language-server",
|
||||||
--ruby
|
--ruby
|
||||||
"ruby-lsp",
|
|
||||||
-- bash
|
-- bash
|
||||||
"shfmt",
|
"shfmt",
|
||||||
-- go
|
-- go
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ return {
|
|||||||
files = {
|
files = {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
ignored = true,
|
ignored = true,
|
||||||
exclude = { "venvs/*", "*.pyc", "*.po" },
|
exclude = { "venvs/*", "*.pyc", "*.po" ,"node_modules/*", "bundle/*"},
|
||||||
layout = { preset = "file_telescope" },
|
layout = { preset = "file_telescope" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -110,3 +110,7 @@ export PATH="$HOME/.cargo/bin:$PATH"
|
|||||||
export GOPATH=$HOME/workspace/go-tools
|
export GOPATH=$HOME/workspace/go-tools
|
||||||
export GOBIN=$GOPATH/bin
|
export GOBIN=$GOPATH/bin
|
||||||
export PATH="$GOBIN:/usr/local/go/bin:$PATH"
|
export PATH="$GOBIN:/usr/local/go/bin:$PATH"
|
||||||
|
|
||||||
|
# node / js / nvm
|
||||||
|
export NVM_DIR="$HOME/workspace/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
|||||||
@@ -25,3 +25,5 @@ alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate &&
|
|||||||
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
|
||||||
alias portal-dev='cd ~/workspace/pg/portal/'
|
alias portal-dev='cd ~/workspace/pg/portal/'
|
||||||
|
|
||||||
|
alias lg='lazygit'
|
||||||
|
alias ..nvim="../ && nvim"
|
||||||
|
|||||||
Reference in New Issue
Block a user