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 | |
parent | 0df76190122400f0fa73df58c218460ffa89e421 (diff) | |
download | dots-3fab06c7710da6ee7021e384635e09e617f2b5da.tar.gz |
feat: neorg and haskell stuff
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/config/init.lua | 35 | ||||
-rw-r--r-- | .config/nvim/lua/config/opt.lua | 3 | ||||
-rw-r--r-- | .config/nvim/lua/config/plg.lua | 11 |
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, {}) |