mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-08-07 03:14:35 +02:00
enc: upgrade v2 to v2.5
This commit is contained in:
parent
68ea712b98
commit
609234c086
443 changed files with 5224 additions and 90746 deletions
71
lua/pcode/user/options.lua
Normal file
71
lua/pcode/user/options.lua
Normal file
|
@ -0,0 +1,71 @@
|
|||
local options = {
|
||||
backspace = vim.opt.backspace + { "nostop" }, -- Jangan hentikan backspace saat insert
|
||||
clipboard = "unnamedplus", -- Koneksi ke clipboard sistem
|
||||
cmdheight = 0, -- Sembunyikan command line kecuali dibutuhkan
|
||||
completeopt = { "menuone", "noselect" }, -- Opsi untuk penyelesaian mode insert
|
||||
copyindent = true, -- Salin indentasi sebelumnya pada autoindenting
|
||||
cursorline = true, -- Sorot baris teks dari kursor
|
||||
expandtab = true, -- Aktifkan penggunaan spasi di tab
|
||||
fileencoding = "utf-8", -- Pengkodean konten file untuk buffer
|
||||
fillchars = { eob = " " }, -- Nonaktifkan `~` pada baris yang tidak ada
|
||||
history = 100, -- Jumlah perintah yang diingat dalam tabel riwayat
|
||||
ignorecase = true, -- Pencarian tidak peka huruf besar kecil
|
||||
laststatus = 3, -- globalstatus
|
||||
guicursor = "n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175",
|
||||
lazyredraw = false, -- Layar digambar ulang dengan malas
|
||||
mouse = "a", -- Aktifkan dukungan mouse
|
||||
number = true, -- Tampilkan garis nomor
|
||||
preserveindent = true, -- Pertahankan struktur indentasi sebanyak mungkin
|
||||
pumheight = 10, -- Tinggi menu pop up
|
||||
relativenumber = true, -- Tampilkan garis nomor relatif
|
||||
scrolloff = 8, -- Jumlah baris untuk menjaga di atas dan di bawah kursor
|
||||
shiftwidth = 2, -- Jumlah spasi yang dimasukkan untuk indentasi
|
||||
showmode = false, -- Nonaktifkan menampilkan mode di command line
|
||||
showtabline = 2, -- Selalu tampilkan tabline
|
||||
sidescrolloff = 8, -- Jumlah kolom untuk menjaga di sisi kursor
|
||||
signcolumn = "yes", -- Selalu tampilkan kolom tanda
|
||||
smartcase = true, -- Pencarian peka huruf besar kecil
|
||||
splitbelow = true, -- Membagi jendela baru di bawah jendela saat ini
|
||||
splitright = true, -- Membagi jendela baru di kanan jendela saat ini
|
||||
swapfile = false, -- Nonaktifkan penggunaan swapfile untuk buffer
|
||||
tabstop = 2, -- Jumlah spasi dalam tab
|
||||
termguicolors = true, -- Aktifkan warna RGB 24-bit di TUI
|
||||
timeoutlen = 300, -- Panjang waktu tunggu untuk urutan yang dipetakan
|
||||
undofile = true, -- Aktifkan undo yang persisten
|
||||
updatetime = 300, -- Panjang waktu tunggu sebelum memicu plugin
|
||||
wrap = false, -- Nonaktifkan pembungkusan baris lebih panjang dari lebar jendela
|
||||
writebackup = false, -- Nonaktifkan membuat cadangan sebelum menimpa file
|
||||
guifont = "Hasklug Nerd Font:h15", -- font yang digunakan dalam aplikasi neovim grafis
|
||||
whichwrap = "bs<>[]hl", -- Kunci "horizontal" yang diizinkan untuk berpindah ke baris sebelumnya/selanjutnya
|
||||
}
|
||||
|
||||
for k, v in pairs(options) do
|
||||
vim.opt[k] = v
|
||||
end
|
||||
|
||||
-- vim.opt.shortmess = "ilmnrx" -- flags to shorten vim messages, see :help 'shortmess'
|
||||
-- vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
|
||||
vim.opt.shortmess:append("c") -- don't give |ins-completion-menu| messages
|
||||
vim.opt.iskeyword:append("-") -- hyphenated words recognized by searches
|
||||
vim.opt.formatoptions:remove({ "t", "c", "q", "j" })
|
||||
vim.opt.formatoptions = "croql"
|
||||
-- vim.opt.formatoptions:remove({ "c", "r", "o" }) -- don't insert the current comment leader automatically for auto-wrapping comments using 'textwidth', hitting <Enter> in insert mode, or hitting 'o' or 'O' in normal mode.
|
||||
vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") -- separate vim plugins from neovim in case vim still in use
|
||||
-- config for blink cursor in normal, visual and insert mode
|
||||
-- vim.opt.guicursor = {
|
||||
-- "n-v-c:block-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
|
||||
-- "i-ci:ver25-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
|
||||
-- "r:hor50-Cursor/lCursor-blinkwait100-blinkon100-blinkoff100",
|
||||
-- }
|
||||
vim.loader.enable()
|
||||
|
||||
-- Disable statusline in dashboard
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "dbout", "dbui", "http", "httpResult" },
|
||||
callback = function()
|
||||
local opt = vim.opt
|
||||
opt.number = false -- Print line number
|
||||
opt.preserveindent = false -- Preserve indent structure as much as possible
|
||||
opt.relativenumber = false
|
||||
end,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue