diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-06 21:53:56 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-06 21:53:56 +0200 |
commit | 6a1732982287ef5aff2a6de171192b9e2bb90758 (patch) | |
tree | 543f94f80d548b9ed7a9d0daecb08575a01a9a45 /.config/nvim/lua/utils | |
parent | b89e893bfc7b8893dc4c13aa55f627096b32758a (diff) |
Updates to nvim from lvim
Diffstat (limited to '.config/nvim/lua/utils')
-rw-r--r-- | .config/nvim/lua/utils/ft.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/utils/init.lua | 12 |
2 files changed, 5 insertions, 9 deletions
diff --git a/.config/nvim/lua/utils/ft.lua b/.config/nvim/lua/utils/ft.lua index fcebd1e..e9852e6 100644 --- a/.config/nvim/lua/utils/ft.lua +++ b/.config/nvim/lua/utils/ft.lua @@ -1,3 +1,5 @@ +-- Here be dragons +-- Opening files with telescope will not start LSP without this local ft = {} ft.find_lua_ftplugins = function(filetype) diff --git a/.config/nvim/lua/utils/init.lua b/.config/nvim/lua/utils/init.lua index 65bc6f5..1695d19 100644 --- a/.config/nvim/lua/utils/init.lua +++ b/.config/nvim/lua/utils/init.lua @@ -70,9 +70,7 @@ function utils.toggle_autoformat() }, }, } - if Log:get_default() then - Log:get_default().info "Format on save active" - end + Log:debug "Format on save active" end if not options.format_on_save then @@ -81,9 +79,7 @@ function utils.toggle_autoformat() :autocmd! autoformat endif ]] - if Log:get_default() then - Log:get_default().info "Format on save off" - end + Log:debug "Format on save off" end end @@ -104,7 +100,7 @@ function utils.reload_config() -- vim.cmd ":PackerClean" local null_ls = require "lsp.null-ls" null_ls.setup(vim.bo.filetype, { force_reload = true }) - Log:get_default().info "Reloaded configuration" + Log:info "Reloaded configuration" end function utils.unrequire(m) @@ -132,5 +128,3 @@ function utils.is_file(filename) end return utils - --- TODO: find a new home for these autocommands |