mirror of
https://github.com/ivuorinen/astronvim_config.git
synced 2026-02-21 10:50:26 +00:00
Astronvim config from kabinspace/AstroNvim_user
This commit is contained in:
9
lsp/on_attach.lua
Normal file
9
lsp/on_attach.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return function(client, bufnr)
|
||||
if client.server_capabilities.inlayHintProvider then
|
||||
local inlayhints_avail, inlayhints = pcall(require, "lsp-inlayhints")
|
||||
if inlayhints_avail then
|
||||
inlayhints.on_attach(client, bufnr)
|
||||
vim.keymap.set("n", "<leader>uH", function() inlayhints.toggle() end, { desc = "Toggle inlay hints" })
|
||||
end
|
||||
end
|
||||
end
|
||||
5
lsp/server-settings/clangd.lua
Normal file
5
lsp/server-settings/clangd.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
capabilities = {
|
||||
offsetEncoding = "utf-8",
|
||||
},
|
||||
}
|
||||
7
lsp/server-settings/sumneko_lua.lua
Normal file
7
lsp/server-settings/sumneko_lua.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
hint = { enable = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
26
lsp/server-settings/tsserver.lua
Normal file
26
lsp/server-settings/tsserver.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
settings = {
|
||||
javascript = {
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
},
|
||||
},
|
||||
typescript = {
|
||||
inlayHints = {
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
11
lsp/server-settings/yamlls.lua
Normal file
11
lsp/server-settings/yamlls.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
settings = {
|
||||
yaml = {
|
||||
schemas = {
|
||||
["http://json.schemastore.org/github-workflow"] = ".github/workflows/*.{yml,yaml}",
|
||||
["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}",
|
||||
["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user