about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/init.lua
blob: d23ba1c2f3b2bfc60b1cac06c2273a3677cf1b64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require("config.plg")
require("config.map")
require("config.opt")

-- Colorscheme configuration
require("gruvbox").setup({
    italic = { strings = false, emphasis = false, comments = false },
    transparent_mode = true
})
vim.cmd("colorscheme gruvbox")

-- ensure highlighting
require("nvim-treesitter.configs").setup({
    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,
  },
})