[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",
|
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
|
||||||
"formatter": {
|
|
||||||
"enabled": true,
|
|
||||||
"indentStyle": "space",
|
|
||||||
"indentWidth": 4,
|
|
||||||
"lineWidth": 120
|
|
||||||
},
|
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
@@ -18,8 +12,46 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"vcs": {
|
"vcs": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"clientKind": "git"
|
"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" },
|
||||||
{ import = "plugins.langs.python" },
|
{ import = "plugins.langs.python" },
|
||||||
{ import = "plugins.langs.go" },
|
{ import = "plugins.langs.go" },
|
||||||
{ import = "plugins.langs.xml_json_html" },
|
{import = "plugins.langs.ruby"},
|
||||||
|
{import = "plugins.langs.biome"},
|
||||||
|
{ import = "plugins.langs.xml" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
lsp_formatting = false,
|
||||||
|
fallback = false,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
python = { "black" },
|
python = { "black" },
|
||||||
javascript = { "biome" },
|
|
||||||
go = { "goimports", "gofumpt" },
|
go = { "goimports", "gofumpt" },
|
||||||
xml = { "lemminx" },
|
xml = { "lemminx" },
|
||||||
|
ruby = { "rubocop" },
|
||||||
|
json = { "biome" },
|
||||||
|
css = { "biome" },
|
||||||
|
javascript = { "biome" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
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
|
-- python
|
||||||
"basedpyright",
|
"basedpyright",
|
||||||
"ruff",
|
"ruff",
|
||||||
-- js, json, xml, all front end stuff
|
|
||||||
"black",
|
"black",
|
||||||
-- "biome",
|
-- js, json, xml, all front end stuff
|
||||||
|
"vtsls",
|
||||||
|
"biome",
|
||||||
"lemminx",
|
"lemminx",
|
||||||
|
"html-lsp",
|
||||||
|
-- "css-lsp",
|
||||||
-- lua
|
-- lua
|
||||||
"stylua",
|
"stylua",
|
||||||
"lua-language-server",
|
"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)"
|
eval "$(~/.local/repos/rbenv/bin/rbenv init - --no-rehash zsh)"
|
||||||
# message of the day
|
# message of the day
|
||||||
~/.config/nvim/zsh/motd.sh
|
~/.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