mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: expanded null ls to markdown and embeded code
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
-- autocmd
|
||||
|
||||
-- read files correctly
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
@@ -19,7 +21,7 @@ vim.api.nvim_create_autocmd({'BufWritePre'},
|
||||
command = [[%s/\s\+$//e]],
|
||||
})
|
||||
|
||||
-- c
|
||||
-- settings for filetype: c
|
||||
|
||||
vim.api.nvim_create_autocmd({'VimLeave'},
|
||||
{pattern = {'c'},
|
||||
@@ -31,7 +33,7 @@ vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
command = 'set colorcolumn=80'
|
||||
})
|
||||
|
||||
-- java
|
||||
-- settings for filetype: java
|
||||
|
||||
vim.api.nvim_create_autocmd({'FileType'},
|
||||
{pattern = {'java'},
|
||||
@@ -43,14 +45,14 @@ vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
command = 'set colorcolumn=100'
|
||||
})
|
||||
|
||||
-- javascript
|
||||
-- settings for filetype: javascript
|
||||
|
||||
vim.api.nvim_create_autocmd({'FileType'},
|
||||
{pattern = {'javascript'},
|
||||
command = 'setlocal shiftwidth=2 softtabstop=2',
|
||||
})
|
||||
|
||||
-- lua
|
||||
-- settings for filetype: lua
|
||||
|
||||
vim.api.nvim_create_autocmd({'FileType'},
|
||||
{pattern = {'lua'},
|
||||
@@ -62,7 +64,7 @@ vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
command = 'set colorcolumn=100'
|
||||
})
|
||||
|
||||
-- markdown
|
||||
-- settings for filetype: markdown
|
||||
|
||||
vim.api.nvim_create_autocmd({'FileType'},
|
||||
{pattern = {'markdown'},
|
||||
@@ -79,21 +81,21 @@ vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
command = 'set conceallevel=2'
|
||||
})
|
||||
|
||||
-- nim
|
||||
-- settings for filetype: nim
|
||||
|
||||
vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
{pattern = {'nim'},
|
||||
command = 'set colorcolumn=80'
|
||||
})
|
||||
|
||||
-- python
|
||||
-- settings for filetype: python
|
||||
|
||||
vim.api.nvim_create_autocmd({'BufEnter', 'FileType'},
|
||||
{pattern = {'python'},
|
||||
command = 'set colorcolumn=80'
|
||||
})
|
||||
|
||||
-- tex
|
||||
-- settings for filetype: tex
|
||||
|
||||
vim.api.nvim_create_autocmd({'VimLeave'},
|
||||
{pattern = {'tex'},
|
||||
|
@@ -56,6 +56,7 @@ return require("packer").startup(function(use)
|
||||
'williamboman/mason.nvim',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
'LostNeophyte/null-ls-embedded',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'jay-babu/mason-null-ls.nvim'}}
|
||||
|
||||
|
Reference in New Issue
Block a user