about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/init.lua
diff options
context:
space:
mode:
authorVitor Gonçalves <vitorg@tilde.team>2024-02-10 21:31:33 -0300
committerVitor Gonçalves <vitorg@tilde.team>2024-02-10 21:31:33 -0300
commit3fab06c7710da6ee7021e384635e09e617f2b5da (patch)
treee9792f257263d86f8bc3eb3d389fffaac4d89c33 /.config/nvim/lua/config/init.lua
parent0df76190122400f0fa73df58c218460ffa89e421 (diff)
downloaddots-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.lua35
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,
+  },
+})