about summary refs log tree commit diff stats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/config/init.lua35
-rw-r--r--.config/nvim/lua/config/opt.lua3
-rw-r--r--.config/nvim/lua/config/plg.lua11
3 files changed, 47 insertions, 2 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,
+  },
+})
diff --git a/.config/nvim/lua/config/opt.lua b/.config/nvim/lua/config/opt.lua
index ab65cd5..14f67d9 100644
--- a/.config/nvim/lua/config/opt.lua
+++ b/.config/nvim/lua/config/opt.lua
@@ -25,3 +25,6 @@ opt.cursorline     = true
 
 opt.splitright = true
 opt.splitbelow = true
+
+opt.foldlevel = 99
+opt.conceallevel = 2
diff --git a/.config/nvim/lua/config/plg.lua b/.config/nvim/lua/config/plg.lua
index d1b9871..2997005 100644
--- a/.config/nvim/lua/config/plg.lua
+++ b/.config/nvim/lua/config/plg.lua
@@ -15,7 +15,16 @@ vim.opt.rtp:prepend(lazypath)
 local plugins = {
     { "ellisonleao/gruvbox.nvim", priority = 1000 , config = true, opts = ...},
     { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
-    { 'nvim-telescope/telescope.nvim', tag = '0.1.5', dependencies = { 'nvim-lua/plenary.nvim' } }
+    { "nvim-telescope/telescope.nvim", tag = "0.1.5", dependencies = { "nvim-lua/plenary.nvim" } },
+    { "nvim-neorg/neorg", build = ":Neorg sync-parsers", dependencies = { "nvim-lua/plenary.nvim", "nvim-neorg/neorg-telescope" } },
+    {'williamboman/mason.nvim'},
+    {'williamboman/mason-lspconfig.nvim'},
+
+    {'VonHeikemen/lsp-zero.nvim', branch = 'v3.x'},
+    {'neovim/nvim-lspconfig'},
+    {'hrsh7th/cmp-nvim-lsp'},
+    {'hrsh7th/nvim-cmp'},
+    {'L3MON4D3/LuaSnip'},
 }
 
 require("lazy").setup(plugins, {})