Advertisement
CharaD7

settings.lua configuration

May 25th, 2021
1,504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.27 KB | None | 0 0
  1. vim.o.guifont = "FiraCode\\ Nerd\\ Font:h17"
  2. vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object"
  3. vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|.
  4. vim.cmd('set inccommand=split') -- Make substitution work in realtime
  5. vim.o.hidden = O.hidden_files -- Required to keep multiple buffers open multiple buffers
  6. vim.o.title = true
  7. TERMINAL = vim.fn.expand('$TERMINAL')
  8. vim.cmd('let &titleold="'..TERMINAL..'"')
  9. vim.o.titlestring="%<%F%=%l/%L - nvim"
  10. vim.wo.wrap = O.wrap_lines -- Display long lines as just one line
  11. vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
  12. vim.cmd('syntax on') -- syntax highlighting
  13. vim.o.pumheight = 10 -- Makes popup menu smaller
  14. vim.o.fileencoding = "utf-8" -- The encoding written to file
  15. vim.o.cmdheight = 2 -- More space for displaying messages
  16. vim.cmd('set colorcolumn=99999') -- fix indentline for now
  17. vim.o.mouse = "a" -- Enable your mouse
  18. vim.o.splitbelow = true -- Horizontal splits will automatically be below
  19. vim.o.termguicolors = true -- set term gui colors most terminals support this
  20. vim.o.splitright = true -- Vertical splits will automatically be to the right
  21. vim.o.t_Co = "256" -- Support 256 colors
  22. vim.o.conceallevel = 0 -- So that I can see `` in markdown files
  23. vim.cmd('set ts=4') -- Insert 2 spaces for a tab
  24. vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation
  25. vim.cmd('set expandtab') -- Converts tabs to spaces
  26. vim.bo.smartindent = true -- Makes indenting smart
  27. vim.wo.number = O.number -- set numbered lines
  28. vim.wo.relativenumber = O.relative_number -- set relative number
  29. vim.wo.cursorline = true -- Enable highlighting of the current line
  30. vim.o.showtabline = 2 -- Always show tabs
  31. vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore
  32. vim.o.backup = false -- This is recommended by coc
  33. vim.o.writebackup = false -- This is recommended by coc
  34. vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
  35. vim.o.updatetime = 300 -- Faster completion
  36. vim.o.timeoutlen = O.timeoutlen -- By default timeoutlen is 1000 ms
  37. vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
  38. vim.g.nvim_tree_disable_netrw = O.nvim_tree_disable_netrw
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement