update lvim stuffs

chezmoi
sgoudham 2 years ago
parent e1d29a7745
commit 25a32e72d6
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -78,6 +78,7 @@ lvim.builtin.which_key.mappings["f"] = {
c = { "<cmd>Telescope current_buffer_fuzzy_find<cr>", "Find Text In Current Buffer" },
C = { "<cmd>Telescope commands<cr>", "Find Commands" },
r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File" },
p = { "<cmd>Telescope projects<cr>", "Open Projects" },
}
local _, actions = pcall(require, "telescope.actions")
@ -141,7 +142,8 @@ lvim.builtin.treesitter.ensure_installed = {
"markdown_inline",
"html",
"go",
"erlang"
"erlang",
"toml"
}
require("lspconfig.ui.windows").default_options.border = "rounded"
@ -208,6 +210,7 @@ require("lvim.lsp.manager").setup("hls", opts)
-- Additional Plugins
lvim.plugins = {
{ "andweeb/presence.nvim" },
{ "hrsh7th/cmp-cmdline" },
{ "gpanders/editorconfig.nvim" },
{ "p00f/nvim-ts-rainbow" },

@ -1,43 +0,0 @@
-- vim.api.nvim_create_autocmd("BufWritePost",
-- {
-- group = vim.api.nvim_create_augroup("haskell", { clear = true }),
-- pattern = "*.hs",
-- desc = "Automatically output "
-- callback = function()
-- }
-- )
local M = {}
M.haskell_buf = nil
local append_data = function(_, data)
if data then
vim.api.nvim_buf_set_lines(M.haskell_buf, -1, -1, false, data)
end
end
function M:run_haskell()
local path_to_file = vim.fn.expand("%:p")
if M.haskell_buf == nil then
vim.cmd [[vsplit]]
vim.cmd [[enew]]
M.haskell_buf = vim.api.nvim_get_current_buf()
vim.api.nvim_buf_attach(M.haskell_buf, false, {
on_detach = function()
M.haskell_buf = nil
end
})
end
vim.api.nvim_buf_set_lines(M.haskell_buf, 0, -1, false, { "---- RESULTS ----" })
vim.fn.jobstart("runhaskell " .. path_to_file, {
stdout_buffered = true,
on_stdout = append_data,
on_stderr = append_data
})
end
return M
Loading…
Cancel
Save