Skip to content

Commit

Permalink
Try using mason
Browse files Browse the repository at this point in the history
  • Loading branch information
njbennett committed Nov 3, 2023
1 parent db8de83 commit d4a4716
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions init.lua
Expand Up @@ -32,7 +32,9 @@ local plugins = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
},
{ "williamboman/mason.nvim" },
{ "williamboman/mason-lspconfig.nvim" }
},
{
'nvim-telescope/telescope.nvim',
Expand All @@ -43,14 +45,19 @@ local plugins = {

require("lazy").setup(plugins)

--- lspconfig
local lspconfig = require 'lspconfig'

vim.o.foldcolumn = '1' -- '0' is not bad
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true

require("mason").setup()
require("mason-lspconfig").setup()


require("mason-lspconfig").setup {
ensure_installed = { "lua_ls", "rust_analyzer" },
}

local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
Expand Down

0 comments on commit d4a4716

Please sign in to comment.