neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove all temporary configs

- move `neorg-ls` configuration to project-local config (`:h 'exrc'`)
- make `utils.load_local_parser` to check if parser exists

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

+7 -14
+1 -13
init.lua
··· 22 22 23 23 require("utils.format").setup() 24 24 25 - -- local ok, kulala = pcall(require, "kulala") 26 - -- if ok then 27 - -- kulala.setup() 28 - -- end 29 - -- require("utils").load_local_parser("norg", "norg") 30 - -- 31 - -- vim.lsp.config("neorg-ls", { 32 - -- cmd = { vim.fs.normalize("~/projects/neorg-ls/target/debug/neorg-language-server") }, 33 - -- root_markers = { "root.toml" }, 34 - -- filetypes = { "norg" }, 35 - -- }) 36 - -- 37 - -- vim.lsp.enable("neorg-ls") 25 + require("utils").load_local_parser("norg", "norg")
+1
lua/core/options.lua
··· 12 12 vim.o.confirm = true 13 13 vim.o.cursorline = true 14 14 vim.o.expandtab = true 15 + vim.o.exrc = true 15 16 -- stylua: ignore 16 17 vim.opt.fillchars = { 17 18 foldopen = "v",
+5 -1
lua/utils/init.lua
··· 60 60 if vim.fn.has("macunix") == 1 then 61 61 parser = string.format("$HOME/.cache/tree-sitter/lib/%s.dylib", lang) 62 62 end 63 + local path = vim.fs.normalize(parser) 64 + if not vim.uv.fs_stat(path) then 65 + return 66 + end 63 67 vim.treesitter.language.add(lang, { 64 - path = vim.fs.normalize(parser), 68 + path = path, 65 69 filetype = filetype, 66 70 }) 67 71 if not vim.treesitter.language.get_lang(filetype) then