dotfiles

My current dotfiles, managed with stow!
Log | Files | Refs | README

settings.lua (1306B)


      1 vim.o.background = 'dark'
      2 vim.cmd 'colorscheme theme'
      3 
      4 -- Set leader to space
      5 vim.g.mapleader = ' '
      6 
      7 -- Line numbers
      8 -- See :h number_relativenumber
      9 vim.wo.number = true
     10 vim.wo.relativenumber = true
     11 
     12 -- Tab configuration
     13 -- See :h tabstop for tab configuration stuff
     14 vim.bo.tabstop = 4
     15 vim.bo.softtabstop = 4
     16 vim.bo.shiftwidth = 4
     17 vim.bo.expandtab = true
     18 vim.bo.autoindent = true
     19 vim.o.smarttab = true
     20 vim.o.hidden = true
     21 
     22 -- Use Australian spelling
     23 vim.bo.spelllang = 'en_au'
     24 
     25 -- Use c ftplugin for .h files
     26 vim.g.c_syntax_for_h = 1
     27 
     28 -- Ruler shows the line and column number at the bottom right
     29 vim.o.ruler = true
     30 
     31 -- Always show the tab bar for consistency
     32 vim.o.showtabline = 2
     33 
     34 -- Make underscore separated words separate words
     35 --vim.bo.iskeyword = vim.bo.iskeyword:gsub(",_","")
     36 --vim.o.iskeyword = vim.o.iskeyword:gsub(",_","")
     37 
     38 -- Dont wrap long lines
     39 vim.wo.wrap = false
     40 
     41 -- Dont highlight searches
     42 vim.o.hlsearch = false
     43 
     44 -- Always have the sign column so that code doesnt move around on error
     45 vim.wo.signcolumn = "yes"
     46 
     47 -- Colour column shows the text width of a file
     48 vim.wo.colorcolumn = vim.wo.colorcolumn .. '+' .. 1
     49 for i = 2,255 do vim.wo.colorcolumn = vim.wo.colorcolumn .. ',+' .. i end
     50 
     51 -- Create the typst filetype!
     52 vim.filetype.add({
     53     extension = {
     54         typ = 'typst',
     55     },
     56 })