bababui
This commit is contained in:
parent
4217e4aa45
commit
e685165044
13 changed files with 88 additions and 2 deletions
8
after/ftplugin/cabal.lua
Normal file
8
after/ftplugin/cabal.lua
Normal 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
|
||||
8
after/ftplugin/lhaskell.lua
Normal file
8
after/ftplugin/lhaskell.lua
Normal 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
3
after/ftplugin/nix.lua
Normal 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
|
||||
1
init.lua
1
init.lua
|
|
@ -1,3 +1,4 @@
|
|||
require("config.lazy")
|
||||
require("config.general")
|
||||
require("config.autocmd")
|
||||
require("config.lsp")
|
||||
|
|
|
|||
17
lsp/ocamllsp.lua
Normal file
17
lsp/ocamllsp.lua
Normal 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 = {},
|
||||
}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 0
|
||||
vim.opt.shiftwidth = 0
|
||||
vim.opt.smartindent = true
|
||||
|
||||
vim.opt.shell = "/bin/bash"
|
||||
vim.opt.linebreak = true
|
||||
vim.cmd("set wrap smoothscroll")
|
||||
|
|
@ -11,6 +13,8 @@ vim.opt.nu = true
|
|||
vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]])
|
||||
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("i", "jk", "", {})
|
||||
|
|
|
|||
|
|
@ -1,2 +1,11 @@
|
|||
-- lsp that are not on mason/beta branch lsp
|
||||
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
8
lua/plugins/ansi.lua
Normal 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
|
||||
},
|
||||
}
|
||||
|
|
@ -1,4 +1,17 @@
|
|||
return {
|
||||
"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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ return {
|
|||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable("lua_ls")
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
4
lua/plugins/peg.lua
Normal file
4
lua/plugins/peg.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"taeber/vim-peg",
|
||||
lazy = false,
|
||||
}
|
||||
3
lua/plugins/uiua.lua
Normal file
3
lua/plugins/uiua.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"Apeiros-46B/uiua.vim",
|
||||
}
|
||||
9
lua/plugins/vimtex.lua
Normal file
9
lua/plugins/vimtex.lua
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue