diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2024-02-10 21:31:33 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2024-02-10 21:31:33 -0300 |
commit | 3fab06c7710da6ee7021e384635e09e617f2b5da (patch) | |
tree | e9792f257263d86f8bc3eb3d389fffaac4d89c33 /.config/nvim/lua/config/init.lua | |
parent | 0df76190122400f0fa73df58c218460ffa89e421 (diff) | |
download | dots-3fab06c7710da6ee7021e384635e09e617f2b5da.tar.gz |
feat: neorg and haskell stuff
Diffstat (limited to '.config/nvim/lua/config/init.lua')
-rw-r--r-- | .config/nvim/lua/config/init.lua | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/.config/nvim/lua/config/init.lua b/.config/nvim/lua/config/init.lua index 0a733d8..d23ba1c 100644 --- a/.config/nvim/lua/config/init.lua +++ b/.config/nvim/lua/config/init.lua @@ -11,6 +11,39 @@ vim.cmd("colorscheme gruvbox") -- ensure highlighting require("nvim-treesitter.configs").setup({ - ensure_installed = { "c", "lua", "go", "bash", "make", "html", "css" } + ensure_installed = { "haskell", "c", "lua", "go", "bash", "make", "html", "css" } }) +-- neorg +require("neorg").setup { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.integrations.telescope"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/docs/notes", + }, + default_workspace = "notes", + }, + }, + }, +} + +-- lsp-zero +local lsp_zero = require('lsp-zero') + +lsp_zero.on_attach(function(client, bufnr) + lsp_zero.default_keymaps({buffer = bufnr}) +end) +require('mason').setup({}) +require('mason-lspconfig').setup({ + ensure_installed = { "hls", "gopls" }, + handlers = { + gopls = function() + require("lspconfig").gopls.setup({}) + end, + lsp_zero.default_setup, + }, +}) |