-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fcea7e
commit 987613d
Showing
14 changed files
with
359 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
local M ={} | ||
local dict = require("cmp_dictionary") | ||
|
||
dict.setup({ | ||
-- The following are default values. | ||
exact = 2, | ||
first_case_insensitive = false, | ||
document = false, | ||
document_command = "wn %s -over", | ||
sqlite = false, | ||
max_items = -1, | ||
capacity = 5, | ||
debug = false, | ||
}) | ||
|
||
dict.switcher({ | ||
spelllang = { | ||
en = "/home/tlh/.config/nvim/spell/en.dict", | ||
hi ="/home/tlh/.config/nvim/spell/hi.dict", | ||
es = "/home/tlh/.config/nvim/spell/es.dict", | ||
|
||
}, | ||
}) | ||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local M = {} | ||
|
||
M.attach = function(client, buffer) | ||
local status_ok, breadcrumb = pcall(require, "breadcrumb") | ||
if not status_ok then | ||
return | ||
end | ||
if client.server_capabilities.documentSymbolProvider then | ||
breadcrumb.attach(client, buffer) | ||
end | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
local M = {} | ||
|
||
M.attach = function(client, buffer) | ||
local status_ok, inlayhints = pcall(require, "lsp-inlayhints") | ||
if not status_ok then | ||
return | ||
end | ||
inlayhints.on_attach(client, buffer) | ||
end | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
local servers = { | ||
clangd = {}, | ||
cssls = {}, | ||
html = {}, | ||
jsonls = {}, | ||
sqlls = {}, | ||
intelephense = {}, -- php language server | ||
jdtls = { | ||
disabled = true | ||
}, | ||
lua_ls = { | ||
settings = { | ||
Lua = { | ||
hint = { | ||
enable = true, | ||
arrayIndex = "Disable", -- "Enable", "Auto", "Disable" | ||
await = true, | ||
paramName = "Disable", -- "All", "Literal", "Disable" | ||
paramType = false, | ||
semicolon = "Disable", -- "All", "SameLine", "Disable" | ||
setType = true, | ||
}, | ||
runtime = { | ||
version = "LuaJIT", | ||
special = { | ||
reload = "require", | ||
}, | ||
}, | ||
diagnostics = { | ||
globals = { "vim" }, | ||
}, | ||
workspace = { | ||
library = { | ||
[vim.fn.expand("$VIMRUNTIME/lua")] = false, | ||
[vim.fn.stdpath("config") .. "/lua"] = false, | ||
}, | ||
}, | ||
telemetry = { | ||
enable = false, | ||
}, | ||
}, | ||
}, | ||
}, | ||
tsserver = { | ||
settings = { | ||
typescript = { | ||
inlayHints = { | ||
includeInlayParameterNameHints = "all", | ||
includeInlayParameterNameHintsWhenArgumentMatchesName = true, | ||
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, | ||
}, | ||
}, | ||
}, | ||
}, | ||
pyright = { | ||
settings = { | ||
python = { | ||
analysis = { | ||
typeCheckingMode = "basic", | ||
diagnosticMode = "workspace", | ||
inlayHints = { | ||
variableTypes = true, | ||
functionReturnTypes = true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
bashls = {}, | ||
} | ||
|
||
return servers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.