initial commit
This commit is contained in:
commit
413750ce81
10 changed files with 154 additions and 0 deletions
40
lua/config/nvim.lua
Normal file
40
lua/config/nvim.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
-- tabstops -> 4 spaces
|
||||
vim.o.tabstop = 4
|
||||
vim.o.expandtab = true
|
||||
vim.o.softtabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
|
||||
-- disable netrw in favour of telescope
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- colours
|
||||
vim.o.background = "light"
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "number"
|
||||
|
||||
-- line numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "number"
|
||||
|
||||
-- allow virtual lines for lsp inline warnings/errors
|
||||
vim.diagnostic.config({ virtual_lines = true })
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
|
||||
-- custom keymaps
|
||||
-- keymaps for plugins are defined in the plugin config.
|
||||
|
||||
-- keep neovide-specifics neovide-specific
|
||||
if not vim.g.neovide then
|
||||
-- disable cursor animations
|
||||
vim.g.neovide_position_animation_length = 0
|
||||
vim.g.neovide_cursor_animation_length = 0.00
|
||||
vim.g.neovide_cursor_trail_size = 0
|
||||
vim.g.neovide_cursor_animate_in_insert_mode = false
|
||||
|
||||
vim.g.neovide_cursor_animate_command_line = false
|
||||
vim.g.neovide_scroll_animation_far_lines = 0
|
||||
vim.g.neovide_scroll_animation_length = 0.00
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue