Archived
0
0
Fork 0

fixed neovim whitespace and nlsp json schemas

This commit is contained in:
Daryl Ronningen 2022-06-23 23:20:29 +08:00
parent 5f16d590ae
commit f0d6d15319
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
5 changed files with 8 additions and 8 deletions

View file

@ -9,11 +9,5 @@ lsp_installer.on_server_ready(function(server)
capabilities = require("user.lsp.handlers").capabilities, capabilities = require("user.lsp.handlers").capabilities,
} }
if server.name == "jsonls" then
opts.settings = {
json = { schemas = require("nlspsettings.jsonls").get_default_schemas() },
}
end
server:setup(opts) server:setup(opts)
end) end)

View file

@ -6,5 +6,6 @@ end
nlspsettings.setup({ nlspsettings.setup({
config_home = vim.fn.stdpath("config") .. "/lua/user/lsp/settings", config_home = vim.fn.stdpath("config") .. "/lua/user/lsp/settings",
local_settings_root_markers = { ".git" }, local_settings_root_markers = { ".git" },
jsonls_append_default_schemas = true, append_default_schemas = true,
loader = "json",
}) })

View file

@ -1,3 +1,3 @@
{ {
"volar.takeOverMode.enabled": true
} }

View file

@ -11,4 +11,5 @@ vim.g.better_whitespace_filetypes_blacklist = {
"help", "help",
"markdown", "markdown",
"fugitive", "fugitive",
"toggleterm",
} }

4
.zshrc
View file

@ -112,6 +112,10 @@ source /usr/share/nvm/init-nvm.sh
# Make GPG work in WSL # Make GPG work in WSL
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
# Set FUCK
eval $(thefuck --alias fuck)
eval $(thefuck --alias FUCK)
# Set starship Prompt # Set starship Prompt
eval "$(starship init zsh)" eval "$(starship init zsh)"