This commit is contained in:
Dario48 2026-03-07 13:29:57 +01:00
commit e685165044
13 changed files with 88 additions and 2 deletions

8
after/ftplugin/cabal.lua Normal file
View file

@ -0,0 +1,8 @@
local conf = vim.lsp.config.hls
vim.lsp.config("hls", conf)
vim.lsp.enable("hls")
vim.o.tabstop = 2
vim.o.softtabstop = 0
vim.o.shiftwidth = 0
vim.o.expandtab = true

View file

@ -0,0 +1,8 @@
local conf = vim.lsp.config.hls
vim.lsp.config("hls", conf)
vim.lsp.enable("hls")
vim.o.tabstop = 2
vim.o.softtabstop = 0
vim.o.shiftwidth = 0
vim.o.expandtab = true

3
after/ftplugin/nix.lua Normal file
View file

@ -0,0 +1,3 @@
vim.opt.expandtab = true -- expand tab input with spaces characters
vim.opt.tabstop = 2 -- num of space characters per tab
vim.opt.shiftwidth = 2 -- spaces per indentation level

View file

@ -1,3 +1,4 @@
require("config.lazy") require("config.lazy")
require("config.general") require("config.general")
require("config.autocmd") require("config.autocmd")
require("config.lsp")

17
lsp/ocamllsp.lua Normal file
View file

@ -0,0 +1,17 @@
return {
cmd = { "ocamllsp" },
filetypes = {
"ocaml",
"ocaml.interface",
"ocaml.menhir",
"ocaml.ocamllex",
"dune",
"reason",
},
root_markers = {
{ "dune-project", "dune-workspace" },
{ "*.opam", "esy.json", "package.json" },
".git",
},
settings = {},
}

View file

@ -1,6 +1,8 @@
vim.opt.tabstop = 4 vim.opt.tabstop = 4
vim.opt.softtabstop = 0 vim.opt.softtabstop = 0
vim.opt.shiftwidth = 0 vim.opt.shiftwidth = 0
vim.opt.smartindent = true
vim.opt.shell = "/bin/bash" vim.opt.shell = "/bin/bash"
vim.opt.linebreak = true vim.opt.linebreak = true
vim.cmd("set wrap smoothscroll") vim.cmd("set wrap smoothscroll")
@ -11,6 +13,8 @@ vim.opt.nu = true
vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]]) vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]])
vim.keymap.set("n", "<leader>hc", ":set list!<CR>", { silent = true }) vim.keymap.set("n", "<leader>hc", ":set list!<CR>", { silent = true })
vim.keymap.set("t", "<Esc>", "<C-\\><C-N>", {})
vim.keymap.set("n", ".", ":", {}) vim.keymap.set("n", ".", ":", {})
vim.keymap.set("i", "jk", "", {}) vim.keymap.set("i", "jk", "", {})

View file

@ -1,2 +1,11 @@
-- lsp that are not on mason/beta branch lsp -- lsp that are not on mason/beta branch lsp
vim.lsp.enable("zls") vim.lsp.enable("zls")
vim.lsp.enable("ocamllsp")
vim.lsp.enable("ocamllsp")
vim.lsp.enable("clojure_lsp")
vim.lsp.enable("uiua")
vim.lsp.config("llvm-ir-lsp", {
cmd = { "llvm-ir-lsp" },
filetypes = { "llvm" },
})

8
lua/plugins/ansi.lua Normal file
View file

@ -0,0 +1,8 @@
return {
"0xferrous/ansi.nvim",
config = true,
opts = {
auto_enable = false, -- Auto-enable for configured filetypes
filetypes = { "log", "ansi" }, -- Filetypes to auto-enable
},
}

View file

@ -1,4 +1,17 @@
return { return {
"3rd/image.nvim", "3rd/image.nvim",
opts = {}, opts = {
integrations = {
markdown = {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
only_render_image_at_cursor_mode = "popup", -- or "inline"
floating_windows = true, -- if true, images will be rendered in floating markdown windows
filetypes = { "markdown", "vimwiki", "latex" }, -- markdown extensions (ie. quarto) can go here
},
},
},
config = true,
} }

View file

@ -60,7 +60,6 @@ return {
}, },
}, },
}) })
vim.lsp.enable("lua_ls")
end, end,
}, },
}, },

4
lua/plugins/peg.lua Normal file
View file

@ -0,0 +1,4 @@
return {
"taeber/vim-peg",
lazy = false,
}

3
lua/plugins/uiua.lua Normal file
View file

@ -0,0 +1,3 @@
return {
"Apeiros-46B/uiua.vim",
}

9
lua/plugins/vimtex.lua Normal file
View file

@ -0,0 +1,9 @@
return {
"lervag/vimtex",
init = function()
-- VimTeX configuration goes here, e.g.
vim.g.vimtex_view_method = "mupdf"
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_compiler_latexmk = { options = { "-shell-escape" } }
end,
}