nix-dotfiles/programs/neovim/init.lua

70 lines
1.4 KiB
Lua
Raw Normal View History

-- Options
--- ui
vim.opt.number = true
vim.opt.syntax = 'on'
vim.opt.smartcase = true
--- clipboard
vim.opt.clipboard = 'unnamedplus'
-- Enable lazy.vim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " " -- Make sure to set `mapleader` before lazy so your mappings are correct
plugins = {
"folke/which-key.nvim",
{ "folke/neoconf.nvim", cmd = "Neoconf" },
"folke/neodev.nvim",
{
"neovim/nvim-lspconfig",
["dependencies"] = {
{ "j-hui/fidget.nvim", ["opts"] = {} },
{ "folke/neodev.nvim", ["opts"] = {} }
},
["name"] = "nvim-lspconfig"
},
{
'AlexvZyl/nordic.nvim',
lazy = false,
priority = 1000,
config = function()
require 'nordic' .load()
end
},
"lervag/vimtex",
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }
},
}
require("lazy").setup(plugins)
-- Configure nvim-lspconfig to work with servers
require'lspconfig'.ocamllsp.setup{}
-- Configure vimtex
vim.g.vimtex_view_method = "zathura"
-- Configure lualine
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'nord',
},
}