Initial LSP setup with formatting and autocompletion
This commit is contained in:
58
init.lua
Normal file
58
init.lua
Normal file
@@ -0,0 +1,58 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.localmapleader = " "
|
||||
|
||||
require("plugins")
|
||||
require("lsp")
|
||||
require("completion")
|
||||
require("formatting")
|
||||
require("colorscheme")
|
||||
|
||||
local opt = vim.opt
|
||||
|
||||
-- Line numbers
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
|
||||
-- Indentation
|
||||
opt.expandtab = true
|
||||
opt.tabstop = 4
|
||||
opt.shiftwidth = 4
|
||||
opt.softtabstop = 4
|
||||
opt.smartindent = true
|
||||
opt.breakindent = true
|
||||
|
||||
-- Search
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
|
||||
-- Appearance
|
||||
opt.termguicolors = true
|
||||
opt.signcolumn = "yes"
|
||||
opt.cursorline = true
|
||||
opt.scrolloff = 8
|
||||
opt.sidescrolloff = 8
|
||||
opt.wrap = false
|
||||
opt.colorcolumn = "120"
|
||||
|
||||
vim.cmd("colorscheme rose-pine")
|
||||
|
||||
-- Splits
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
|
||||
-- Files
|
||||
opt.undofile = true
|
||||
opt.swapfile = false
|
||||
opt.backup = false
|
||||
opt.updatetime = 250
|
||||
|
||||
-- Clipboard
|
||||
opt.clipboard = "unnamedplus"
|
||||
|
||||
-- Misc
|
||||
opt.mouse = "a"
|
||||
opt.showmode = false
|
||||
opt.isfname:append("@-@")
|
||||
opt.exrc = true
|
||||
Reference in New Issue
Block a user