Skip to content

Commit

Permalink
rm default option and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuda109 committed Oct 1, 2023
1 parent 66b4d81 commit 9588582
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions nvim/lua/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ vim.opt.encoding = 'utf-8'
vim.opt.fileencoding = 'utf-8'

vim.opt.number = true -- Show line number
vim.opt.wrap = false
vim.opt.wrap = false -- Disable line wrapping

vim.opt.hlsearch = true -- Highlight all search results
vim.opt.incsearch = true -- Search strings incrementally
vim.opt.ignorecase = true -- Ignore case letters when search
vim.opt.showmatch = true -- Highlight matching parenthesis

vim.opt.cursorline = true
vim.opt.cursorline = true -- Highlight the current cursor line
vim.opt.background = 'dark'
vim.opt.termguicolors = true -- Enable 24-bit RGB colors

vim.opt.smartindent = true
vim.opt.autoindent = true -- Autoindent new lines

vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2 -- 2 spaces for tabs
vim.opt.shiftwidth = 2 -- 2 spaces for indent width
vim.opt.smarttab = true
vim.opt.expandtab = true -- Insert space character

vim.opt.swapfile = false -- Disable swapfile
vim.opt.swapfile = false -- Disable swap file

vim.opt.cmdheight = 0 -- Set zero height to command line area

Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local opt = { noremap = true, silent = true }
local opt = { silent = true }

-- Remap leader as space key
vim.g.mapleader = ' '
Expand Down
2 changes: 2 additions & 0 deletions nvim/lua/plugins/_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ end

mason.setup()
mason_lspconfig.setup({
-- List of LSP servers to install
ensure_installed = {
'cssls',
'html',
'gopls',
'graphql',
'lua_ls',
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/plugins/_treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if not status_ok then
end

configs.setup({
-- Ensure these language parsers are installed
ensure_installed = {
'css',
'dockerfile',
Expand Down

0 comments on commit 9588582

Please sign in to comment.