radiant.nvim/init.lua

96 lines
1.9 KiB
Lua
Raw Normal View History

2023-12-30 14:48:18 +00:00
vim.g.mapleader = " " -- Set map leader
2024-06-18 13:22:11 +01:00
-- Setup the package manager with plugins and configuration options
require("lazy").setup({
-- Default theme
"devraza/kagayaki.nvim",
2024-03-22 11:34:52 +00:00
2024-06-18 13:22:11 +01:00
"folke/which-key.nvim",
{
"nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' },
},
2024-09-23 12:35:12 +01:00
-- Language servers
2024-06-18 13:22:11 +01:00
"neovim/nvim-lspconfig",
2024-09-23 12:35:12 +01:00
"VonHeikemen/lsp-zero.nvim", branch = "v4.x",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/nvim-cmp",
"williamboman/mason.nvim",
'williamboman/mason-lspconfig.nvim',
2024-06-18 13:22:11 +01:00
"romgrk/barbar.nvim",
"nvim-lualine/lualine.nvim",
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
{
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup()
end,
},
"rktjmp/lush.nvim",
{
'goolord/alpha-nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
},
"nvim-tree/nvim-tree.lua",
"akinsho/toggleterm.nvim",
2024-06-20 14:27:16 +01:00
{
'kaarmu/typst.vim',
ft = 'typst',
lazy = false,
}
2024-06-18 13:22:11 +01:00
})
2024-03-22 21:54:42 +00:00
2024-03-23 16:09:24 +00:00
-- nvim-tree.lua setup
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
require("nvim-tree").setup({
sort = {
sorter = "case_sensitive",
},
view = {
width = 30,
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
})
2024-03-23 16:26:44 +00:00
-- Toggleterm
require("toggleterm").setup{
open_mapping = [[<M-[>]],
shade_true = false,
}
2023-12-30 14:48:18 +00:00
-- Imports from files
require 'core'
2024-09-23 12:35:12 +01:00
-- Language server configuration
require("mason").setup()
require('mason-lspconfig').setup({
handlers = {
function(server_name)
require('lspconfig')[server_name].setup({})
end,
},
})
require('lspconfig').gopls.setup({})
require('lspconfig').rust_analyzer.setup({})
require('lsp-zero').setup_servers({'gopls', 'rust_analyzer'})
local cmp = require('cmp')
cmp.setup({
sources = {
{name = 'nvim_lsp'},
},
mapping = cmp.mapping.preset.insert({}),
snippet = {
expand = function(args)
vim.snippet.expand(args.body)
end,
},
})