Repository navigation
Expand file tree
/
Copy pathinit.lua
More file actions
51 lines (40 loc) · 1.34 KB
/
Copy pathinit.lua
File metadata and controls
51 lines (40 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require("config.lazy")
require("keymaps")
-- set the number of spaces a tab inputs in insert mode
vim.opt.expandtab = true
vim.opt.softtabstop = 2
vim.opt.tabstop = 2
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.cmd("filetype plugin indent on")
-- vim.opt.lineheight = 2
-- :checkhealth vim.lsp (to check the status of the installed LSPs)
--
-- vim.keymap.set('n','K',vim.lsp.buf.hover)
-- vim.lsp.enable("lua_ls")
vim.opt.background = "dark"
vim.cmd.colorscheme("oxocarbon")
-- -- set background to terminal
vim.api.nvim_set_hl(0, "Normal", { bg = "NONE" })
-- Optional: also clear sidebars and floats
vim.api.nvim_set_hl(0, "NormalNC", { bg = "NONE" })
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "NONE" })
vim.api.nvim_set_hl(0, "LineNr", { bg = "NONE" })
vim.api.nvim_set_hl(0, "CursorLineNr", { bg = "NONE" })
-- setting the path for golang
vim.env.PATH = vim.env.PATH .. ":/usr/local/go/bin"
vim.env.PATH = vim.env.PATH .. ":/home/manuelbamise/.config/nvm/versions/node/v22.15.0/bin"
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- optionally enable 24-bit colour
vim.opt.termguicolors = true
vim.api.nvim_create_autocmd("InsertEnter", {
callback = function()
vim.schedule(function()
vim.cmd("nohlsearch")
end)
end,
})