24 lines
729 B
Lua
24 lines
729 B
Lua
vim.diagnostic.config({ virtual_lines = true })
|
|
vim.diagnostic.config({ virtual_text = true })
|
|
vim.o.undofile = true
|
|
vim.o.undodir = vim.fn.expand("~/.local/state/nvim/undo")
|
|
vim.diagnostic.config({ signs = false })
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
pattern = 'TSUpdate',
|
|
callback = function()
|
|
require('nvim-treesitter.parsers').crystal = {
|
|
install_info = {
|
|
url = 'https://github.com/crystal-lang-tools/tree-sitter-crystal',
|
|
-- path = '<ts-crystal-install-path>', -- if you want to use a local version instead
|
|
generate = false,
|
|
generate_from_json = false,
|
|
queries = 'queries/nvim'
|
|
},
|
|
}
|
|
end,
|
|
})
|
|
|
|
vim.treesitter.language.register("crystal", { "cr" })
|
|
|
|
print("loaded extra config.lua file ;)")
|