1
0
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:
2023-07-28 02:14:52 +02:00
parent 933819855f
commit edd82ee7d9
3 changed files with 61 additions and 66 deletions

View File

@@ -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'},

View File

@@ -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'}}