2024-01-15 15:36:10 -05:00
|
|
|
-- Options
|
|
|
|
|
--- ui
|
|
|
|
|
vim.opt.number = true
|
2024-01-23 10:45:26 -05:00
|
|
|
vim.opt.syntax = 'on'
|
|
|
|
|
vim.opt.smartcase = true
|
|
|
|
|
|
2024-01-24 10:40:30 -05:00
|
|
|
--- 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",
|
2024-01-29 13:43:19 -05:00
|
|
|
{
|
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
|
["dependencies"] = {
|
|
|
|
|
{ "j-hui/fidget.nvim", ["opts"] = {} },
|
|
|
|
|
{ "folke/neodev.nvim", ["opts"] = {} }
|
|
|
|
|
},
|
|
|
|
|
["name"] = "nvim-lspconfig"
|
|
|
|
|
},
|
2024-01-29 13:48:01 -05:00
|
|
|
{
|
|
|
|
|
'AlexvZyl/nordic.nvim',
|
|
|
|
|
lazy = false,
|
|
|
|
|
priority = 1000,
|
|
|
|
|
config = function()
|
|
|
|
|
require 'nordic' .load()
|
|
|
|
|
end
|
|
|
|
|
},
|
2024-01-24 10:40:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
require("lazy").setup(plugins)
|
2024-01-29 13:43:19 -05:00
|
|
|
|
|
|
|
|
-- Configure nvim-lspconfig to work with servers
|
|
|
|
|
require'lspconfig'.ocamllsp.setup{}
|