mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
feat(nvim): v0.11: Use native LSP, Completion, Diagnostics
- Move all language LSP configurations to `nvim/lsp` - Move nvim LSP configurations to `nvim/lua/core` - Remove LSP attach keymaps where default ones exists and are usable - Reorged LSP attach keymaps per plugin - Move Lazy.nvim configurations to `nvim/lua/core` - `nvim/init.lua` cleaned to only load other files - Uniform diagnostics symbols across lualine & gutter
This commit is contained in:
28
common/.config/nvim/lsp/ts_ls.lua
Normal file
28
common/.config/nvim/lsp/ts_ls.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
settings = {
|
||||
typescript = {
|
||||
updateImportOnFileMove = { enabled = "always" },
|
||||
suggest = { completeFunctionCalls = true },
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user