@@ -130,6 +130,14 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
130130end --- @diagnostic disable-next-line : undefined-field
131131vim .opt .rtp :prepend (lazypath )
132132
133+ -- adding the .slint filetype to the list of filetypes that neovim can recognize
134+ vim .cmd [[
135+ augroup _slint
136+ autocmd!
137+ autocmd BufRead,BufEnter *.slint set filetype=slint
138+ augroup end
139+ ]]
140+
133141-- [[ Configure and install plugins ]]
134142--
135143-- To check the current status of your plugins, run
@@ -524,14 +532,11 @@ require('lazy').setup({
524532 pyright = {},
525533 rust_analyzer = {},
526534 -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
527- --
528- -- Some languages (like typescript) have entire language plugins that can be useful:
529- -- https://github.com/pmizio/typescript-tools.nvim
530- --
531- -- But for many setups, the LSP (`tsserver`) will work just fine
532535 ts_ls = {},
533- --
534-
536+ slint_lsp = {
537+ -- command = 'slint-lsp',
538+ -- filetypes = { 'slint' },
539+ },
535540 lua_ls = {
536541 -- cmd = {...},
537542 -- filetypes = { ...},
@@ -823,7 +828,7 @@ require('lazy').setup({
823828 main = ' nvim-treesitter.configs' , -- Sets main module to use for opts
824829 -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
825830 opts = {
826- ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' },
831+ ensure_installed = { ' bash' , ' c' , ' diff' , ' html' , ' lua' , ' luadoc' , ' markdown' , ' markdown_inline' , ' query' , ' vim' , ' vimdoc' , ' slint ' },
827832 -- Autoinstall languages that are not installed
828833 auto_install = true ,
829834 ignore_install = { ' latex' },
0 commit comments