[CHORE] moving things around
This commit is contained in:
59
config_files/.rubocop.yml
Normal file
59
config_files/.rubocop.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
AllCops:
|
||||
TargetRubyVersion: 3.4
|
||||
NewCops: enable
|
||||
Exclude:
|
||||
- 'db/schema.rb'
|
||||
- 'bin/**/*'
|
||||
- 'node_modules/**/*'
|
||||
- 'vendor/**/*'
|
||||
|
||||
Layout/LineLength:
|
||||
Max: 100
|
||||
|
||||
Layout/IndentationWidth:
|
||||
Width: 2
|
||||
|
||||
Layout/EmptyLinesAroundClassBody:
|
||||
Enabled: true
|
||||
|
||||
Layout/EmptyLinesAroundModuleBody:
|
||||
Enabled: true
|
||||
|
||||
Naming/VariableName:
|
||||
EnforcedStyle: snake_case
|
||||
|
||||
Naming/MethodName:
|
||||
EnforcedStyle: snake_case
|
||||
|
||||
Naming/ClassAndModuleCamelCase:
|
||||
Enabled: true
|
||||
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
Style/RedundantBegin:
|
||||
Enabled: true
|
||||
|
||||
Style/GuardClause:
|
||||
Enabled: true
|
||||
|
||||
Style/StringLiterals:
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/TrailingCommaInArguments:
|
||||
EnforcedStyleForMultiline: comma
|
||||
|
||||
Style/OptionalBooleanParameter:
|
||||
Enabled: false
|
||||
|
||||
Metrics/MethodLength:
|
||||
Max: 25
|
||||
|
||||
Metrics/ClassLength:
|
||||
Max: 200
|
||||
|
||||
Metrics/BlockLength:
|
||||
Max: 25
|
||||
|
||||
Metrics/AbcSize:
|
||||
Max: 15
|
||||
@@ -1,11 +1,5 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 4,
|
||||
"lineWidth": 120
|
||||
},
|
||||
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
@@ -18,8 +12,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git"
|
||||
},
|
||||
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 4,
|
||||
"lineWidth": 100
|
||||
},
|
||||
|
||||
"linter": {
|
||||
"enabled": true
|
||||
},
|
||||
"assist": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"css": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentWidth": 2,
|
||||
"indentStyle": "space"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true
|
||||
},
|
||||
"assist": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"json": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 4,
|
||||
"expand": "always"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ require("lazy").setup({
|
||||
{ import = "plugins" },
|
||||
{ import = "plugins.langs.python" },
|
||||
{ import = "plugins.langs.go" },
|
||||
{ import = "plugins.langs.xml_json_html" },
|
||||
{import = "plugins.langs.ruby"},
|
||||
{import = "plugins.langs.biome"},
|
||||
{ import = "plugins.langs.xml" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
lsp_formatting = false,
|
||||
fallback = false,
|
||||
formatters_by_ft = {
|
||||
python = { "black" },
|
||||
javascript = { "biome" },
|
||||
go = { "goimports", "gofumpt" },
|
||||
xml = { "lemminx" },
|
||||
ruby = { "rubocop" },
|
||||
json = { "biome" },
|
||||
css = { "biome" },
|
||||
javascript = { "biome" },
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
|
||||
11
lua/plugins/langs/biome/nvim-lspconfig.lua
Normal file
11
lua/plugins/langs/biome/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
biome = {
|
||||
cmd = { "biome", "lsp-proxy" },
|
||||
filetypes = { "javascript", "css", "json" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
33
lua/plugins/langs/ruby/nvim-lspconfig.lua
Normal file
33
lua/plugins/langs/ruby/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
22
lua/plugins/langs/xml/nvim-lspconfig.lua
Normal file
22
lua/plugins/langs/xml/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
lemminx = {
|
||||
init_options = {
|
||||
settings = {
|
||||
xml = {
|
||||
format = {
|
||||
enabled = true,
|
||||
splitAttributes = false,
|
||||
},
|
||||
validation = {
|
||||
noGrammar = "ignore",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
lemminx = {
|
||||
init_options = {
|
||||
settings = {
|
||||
xml = {
|
||||
format = {
|
||||
enabled = true,
|
||||
splitAttributes = false,
|
||||
},
|
||||
validation = {
|
||||
noGrammar = "ignore", -- This is correct
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,13 @@ return {
|
||||
-- python
|
||||
"basedpyright",
|
||||
"ruff",
|
||||
-- js, json, xml, all front end stuff
|
||||
"black",
|
||||
-- "biome",
|
||||
-- js, json, xml, all front end stuff
|
||||
"vtsls",
|
||||
"biome",
|
||||
"lemminx",
|
||||
"html-lsp",
|
||||
-- "css-lsp",
|
||||
-- lua
|
||||
"stylua",
|
||||
"lua-language-server",
|
||||
|
||||
@@ -102,3 +102,11 @@ export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=015,bold"
|
||||
eval "$(~/.local/repos/rbenv/bin/rbenv init - --no-rehash zsh)"
|
||||
# message of the day
|
||||
~/.config/nvim/zsh/motd.sh
|
||||
|
||||
# rust
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
# go lang
|
||||
export GOPATH=$HOME/workspace/go-tools
|
||||
export GOBIN=$GOPATH/bin
|
||||
export PATH="$GOBIN:/usr/local/go/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user