Dump nixos config after scrubing
This commit is contained in:
commit
5fa4c76c24
854 changed files with 30072 additions and 0 deletions
0
home-modules/explicit-configs/nvim/lua/langs/init.lua
Normal file
0
home-modules/explicit-configs/nvim/lua/langs/init.lua
Normal file
26
home-modules/explicit-configs/nvim/lua/langs/roc.lua
Normal file
26
home-modules/explicit-configs/nvim/lua/langs/roc.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
-- make .roc files have the correct filetype
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
pattern = { "*.roc" },
|
||||
command = "set filetype=roc",
|
||||
})
|
||||
|
||||
-- add roc tree-sitter
|
||||
local parsers = require("nvim-treesitter.parsers").get_parser_configs()
|
||||
|
||||
parsers.roc = {
|
||||
install_info = {
|
||||
url = "https://github.com/faldor20/tree-sitter-roc",
|
||||
files = { "src/parser.c", "src/scanner.c" },
|
||||
},
|
||||
}
|
||||
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
-- additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue