slint_lsp + treesitter for haxe + moved to lua ftplugins
This commit is contained in:
parent
a6df31bf67
commit
5f50a2edca
8 changed files with 48 additions and 7 deletions
2
ftplugin/dart.lua
Normal file
2
ftplugin/dart.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
setlocal tabstop=2
|
||||
setlocal shiftwidth=2
|
||||
2
ftplugin/lua.lua
Normal file
2
ftplugin/lua.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
setlocal tabstop=2
|
||||
setlocal shiftwidth=2
|
||||
|
|
@ -3,13 +3,15 @@
|
|||
"bevy_inspector.nvim": { "branch": "master", "commit": "debdf31e5f4b862447ecbf4a9ebfc61b5a9d0772" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||
"haxe-lsp.nvim": { "branch": "main", "commit": "afd806526ca480f9edb8f7046e15851d96347654" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "2ffe79f1f021def8dd1fcd81deb16f1bb0d989f3" },
|
||||
"nvim-gdb": { "branch": "master", "commit": "67abac716b626ece57f3a7c72121542f0b3edfe9" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "d224a1920728ba129880efc700d4a0180ac4ecbb" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "dad71387de386a946b123079d0e53f23028f3abd" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "43ed3797b266e1ee8d222e491379ad471c9d3146" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "c9f9ed6c1892f629ea399f4ee7905f2686fa13f2" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "427b576c16792edad01a92b89721d923c19ad60f" },
|
||||
|
|
|
|||
1
lua/lsp/slint_lsp.lua
Normal file
1
lua/lsp/slint_lsp.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
return {}
|
||||
4
lua/plugins/haxe.lua
Normal file
4
lua/plugins/haxe.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"https://codeberg.org/jurmerlo/haxe-lsp.nvim",
|
||||
opts = { run_on_open = true },
|
||||
}
|
||||
34
lua/plugins/treesitter.lua
Normal file
34
lua/plugins/treesitter.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
lazy = false,
|
||||
build = ':TSUpdate',
|
||||
config = function()
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "TSUpdate",
|
||||
callback = function()
|
||||
local parsers = require 'nvim-treesitter.parsers'
|
||||
parsers.haxe = {
|
||||
install_info = {
|
||||
url = "https://github.com/vantreeseba/tree-sitter-haxe",
|
||||
branch = "main",
|
||||
queries = "queries",
|
||||
revision = "a25faf5efa842502a326ec803cfbe5a442a11e7c",
|
||||
},
|
||||
tier = 0,
|
||||
}
|
||||
end,
|
||||
})
|
||||
|
||||
vim.filetype.add({ extension = { hx = "haxe" } })
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "haxe",
|
||||
callback = function()
|
||||
local language = vim.treesitter.language.get_lang("haxe")
|
||||
if language and vim.treesitter.language.add(language) then
|
||||
vim.treesitter.start()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue