mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-07 17:41:58 +00:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
31
dot_config/nvim/init.lua
Normal file
31
dot_config/nvim/init.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
-- Enable experimental fast lua module loader
|
||||
vim.loader.enable()
|
||||
|
||||
require("config")
|
||||
require("keybindings")
|
||||
|
||||
-- Then, i want to load lazy as my plugin manager and have it load my plugins
|
||||
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)
|
||||
|
||||
require("lazy").setup("plugins", opts)
|
||||
|
||||
-- Next, set up custom LSPs
|
||||
local lspconfig = require("lspconfig")
|
||||
lspconfig.nushell.setup({})
|
||||
lspconfig.prolog_ls.setup({ root_dir = lspconfig.util.root_pattern(".git") })
|
||||
lspconfig.nixd.setup({})
|
||||
lspconfig.mojo.setup({})
|
||||
|
||||
require("nvim-web-devicons").refresh() -- This fixes screwiness with the devicon colors
|
||||
Reference in New Issue
Block a user