Skip to content

Commit

Permalink
feat(LazyVim): set OpenCL 8 character long tab based indentation for …
Browse files Browse the repository at this point in the history
…linux kernel style
  • Loading branch information
Botond Kalocsai committed May 13, 2024
1 parent f1e90df commit ed7128f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion home/dot_config/nvim/lua/config/autocmds.lua.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ else
pattern = "*.cl",
callback = function()
vim.opt_local.filetype = "opencl"
vim.opt_local.shiftwidth = 8

vim.opt_local.tabstop = 8
vim.opt_local.expandtab = false
vim.opt_local.softtabstop = 8
vim.opt_local.shiftwidth = 8

vim.opt_local.commentstring = "/*%s*/"
vim.opt_local.comments =
"sO:* -,mO:* ,exO:*/,s1:/*,mb:*,ex:*/,:///,://"
Expand Down

0 comments on commit ed7128f

Please sign in to comment.