Skip to content

Commit 4bf81a4

Browse files
Added .slint filetype
1 parent 5a74885 commit 4bf81a4

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

init.lua

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
130130
end ---@diagnostic disable-next-line: undefined-field
131131
vim.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

Comments
 (0)