Compare commits
4 commits
08387a70f8
...
4217e4aa45
| Author | SHA1 | Date | |
|---|---|---|---|
| 4217e4aa45 | |||
| 6d020febe9 | |||
| b5921e1a53 | |||
| 703c4a6473 |
4 changed files with 16 additions and 1 deletions
8
after/ftplugin/haskell.lua
Normal file
8
after/ftplugin/haskell.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
|
||||||
|
|
@ -6,6 +6,9 @@ return {
|
||||||
init = function()
|
init = function()
|
||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
format_on_save = function(bufnr)
|
format_on_save = function(bufnr)
|
||||||
|
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||||
|
return
|
||||||
|
end
|
||||||
require("conform").formatters_by_ft = require("mason-bridge").get_formatters()
|
require("conform").formatters_by_ft = require("mason-bridge").get_formatters()
|
||||||
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
5
lua/plugins/cord.lua
Normal file
5
lua/plugins/cord.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
return {
|
||||||
|
"vyfor/cord.nvim",
|
||||||
|
build = ":Cord update",
|
||||||
|
-- opts = {}
|
||||||
|
}
|
||||||
|
|
@ -24,7 +24,6 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>r", "<Plug>SnipRun", desc = "run snipper", silent = true },
|
{ "<leader>r", "<Plug>SnipRun", desc = "run snipper", silent = true },
|
||||||
{ "<leader>R", "<Plug>SnipLive", desc = "run snipper in REPL mode", silent = true },
|
{ "<leader>R", "<Plug>SnipLive", desc = "run snipper in REPL mode", silent = true },
|
||||||
{ "r", "<Plug>SnipRun", mode = "v", desc = "run snipper", silent = true },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue