Working on lsp
This commit is contained in:
parent
764b890c58
commit
2566fbbec4
18 changed files with 293 additions and 110 deletions
|
@ -1 +1,26 @@
|
|||
function isEmpty()
|
||||
return vim.api.nvim_buf_get_name(0) == "" or vim.fn.filereadable(vim.api.nvim_buf_get_name(0)) == 0 or vim.fn.line('$') == 1 and vim.fn.col('$') == 1
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
||||
callback = function()
|
||||
if isEmpty() then
|
||||
require('telescope.builtin').find_files()
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufRead', {
|
||||
pattern = ".env*",
|
||||
command = "set filetype=sh"
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufRead', {
|
||||
pattern = ".*rc",
|
||||
command = "set filetype=sh"
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufRead', {
|
||||
pattern = "Dockerfile.*",
|
||||
command = "set filetype=dockerfile"
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue