feat: tailor swiftie, and minor fixes
This commit is contained in:
parent
3fc4739c1b
commit
926ba239ce
5 changed files with 95 additions and 44 deletions
|
@ -123,6 +123,11 @@ require("lspconfig").zls.setup{
|
|||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
require("lspconfig").sourcekit.setup{
|
||||
--cmd = {"sourcekit-lsp"},
|
||||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
require("lspconfig").tailwindcss.setup {
|
||||
filetypes = {
|
||||
"astro", "astro-markdown", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "haml", "handlebars", "hbs", "html", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus", "sugarss", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte",
|
||||
|
|
|
@ -4,5 +4,5 @@ require("mini.ai").setup({
|
|||
}
|
||||
})
|
||||
require("mini.jump").setup({})
|
||||
require("mini.sessions").setup({autowrite = false, directory = '~/.local/nvimsessions'})
|
||||
require("mini.sessions").setup({autowrite = false, directory = '~/.local/share/nvimsessions'})
|
||||
|
||||
|
|
|
@ -28,6 +28,17 @@ require"nvim-treesitter.configs".setup {
|
|||
},
|
||||
}
|
||||
|
||||
local treesitter_parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
||||
treesitter_parser_config.templ = {
|
||||
install_info = {
|
||||
url = "https://github.com/vrischmann/tree-sitter-templ.git",
|
||||
files = {"src/parser.c", "src/scanner.c"},
|
||||
branch = "master",
|
||||
},
|
||||
}
|
||||
|
||||
vim.treesitter.language.register('templ', 'templ')
|
||||
|
||||
vim.wo.foldmethod = "manual"
|
||||
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.o.foldlevelstart = 99 -- do not close folds when a buffer is opened
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue