rewrite nvim config to lua
Signed-off-by: Lucas Sta Maria <lucas.stamaria@gmail.com>
This commit is contained in:
parent
8e420fbf97
commit
c293767edf
9 changed files with 294 additions and 10 deletions
35
.config/nvim/init.lua
Normal file
35
.config/nvim/init.lua
Normal file
|
@ -0,0 +1,35 @@
|
|||
-- https://github.com/priime0/dotfiles
|
||||
|
||||
-- given a key and value, set nvim's global settings of key to value
|
||||
local function opt(key, value)
|
||||
vim.o[key] = value
|
||||
end
|
||||
|
||||
-- line numbers
|
||||
opt("number", true)
|
||||
opt("relativenumber", true)
|
||||
|
||||
-- tabs
|
||||
opt("expandtab", true)
|
||||
opt("tabstop", 4)
|
||||
opt("shiftwidth", 4)
|
||||
opt("smarttab", true)
|
||||
|
||||
-- indentation
|
||||
opt("smartindent", true)
|
||||
opt("autoindent", true)
|
||||
|
||||
-- misc
|
||||
opt("termguicolors", true)
|
||||
opt("scrolloff", 1)
|
||||
opt("cursorline", true)
|
||||
opt("showcmd", true)
|
||||
opt("inccommand", "split")
|
||||
opt("updatetime", 100)
|
||||
opt("mouse", "a")
|
||||
|
||||
require("plugins")
|
||||
require("mappings")
|
||||
require("treesitter")
|
||||
require("lsp")
|
||||
require("completion")
|
Loading…
Add table
Add a link
Reference in a new issue