Files
nvim/init.lua

39 lines
1.0 KiB
Lua

-- Pull in core keybindings --
require("dan.core")
-- 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)
-- SET NEOVIM THEME --
vim.o.termguicolors = true
-- vim.cmd "let g:everforest_background = 'hard'"
-- vim.cmd.colorscheme('sistine')
vim.o.background = "dark"
-- Load Plugins
require("lazy").setup("plugins")
vim.cmd.colorscheme('everforest')
vim.keymap.set("n", "<leader>ct", "<cmd>Telescope colorscheme<CR>")
-- LSP --
vim.o.winborder = 'rounded'
vim.lsp.enable({'intelephense'})
vim.lsp.enable({'rust_analyzer'})
vim.lsp.enable({'elixirls'})
vim.lsp.enable({'lexical'})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set({ "n" }, "<leader>ca", vim.lsp.buf.code_action, {})