nix/nvim.lua

49 lines
821 B
Lua

local opt = vim.opt
local g = vim.g
vim.cmd [[
colorscheme spacegray
]]
g.mapleader = ' '
opt.undofile = true
opt.undodir = "/home/sijmen/.cache/nvim/undo"
opt.backupdir = "/home/sijmen/.cache/nvim/backup"
opt.smartindent = true
opt.autoindent = true
opt.tabstop = 2
opt.shiftwidth = 2
opt.expandtab = true
opt.mouse = "a"
opt.termguicolors = true
opt.cursorline = true
opt.relativenumber = true
opt.viminfo = ""
opt.viminfofile = "NONE"
opt.smartcase = true
opt.ttimeoutlen = 5
opt.compatible = false
opt.autoread = true
opt.incsearch = true
opt.hidden = true
opt.shortmess = "atI"
require("nvim-tree").setup()
require("nvim-treesitter.configs").setup {
auto_install = true,
highlight = {
enable = true,
},
}
local lspconfig = require("lspconfig")
lspconfig.rnix.setup{}
lspconfig.pyright.setup{}