mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-16 00:03:03 +00:00
transfer
This commit is contained in:
parent
02c996d21a
commit
28622332a3
83 changed files with 6969 additions and 57 deletions
14
config/nvim/lua/lsp/lua_ls.lua
Normal file
14
config/nvim/lua/lsp/lua_ls.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { 'vim' } },
|
||||
runtime = { version = 'LuaJIT' },
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = { vim.env.VIMRUNTIME },
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
hint = { enable = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
12
config/nvim/lua/lsp/pyright.lua
Normal file
12
config/nvim/lua/lsp/pyright.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = 'basic',
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = 'workspace',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
19
config/nvim/lua/lsp/rust_analyzer.lua
Normal file
19
config/nvim/lua/lsp/rust_analyzer.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
settings = {
|
||||
['rust-analyzer'] = {
|
||||
checkOnSave = { command = 'clippy' },
|
||||
cargo = { allFeatures = true },
|
||||
procMacro = { enable = true },
|
||||
diagnostics = { enable = true },
|
||||
inlayHints = {
|
||||
bindingModeHints = { enable = true },
|
||||
chainingHints = { enable = true },
|
||||
closingBraceHints = { enable = true },
|
||||
closureReturnTypeHints = { enable = 'always' },
|
||||
lifetimeElisionHints = { enable = 'always' },
|
||||
parameterHints = { enable = true },
|
||||
typeHints = { enable = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
26
config/nvim/lua/lsp/ts_ls.lua
Normal file
26
config/nvim/lua/lsp/ts_ls.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
settings = {
|
||||
typescript = {
|
||||
inlayHints = {
|
||||
includeInlayParameterNameHints = 'all',
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
},
|
||||
},
|
||||
javascript = {
|
||||
inlayHints = {
|
||||
includeInlayParameterNameHints = 'all',
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue