diff --git a/lua/crentist/lazy/autopairs.lua b/lua/crentist/lazy/autopairs.lua deleted file mode 100644 index 8f0d4df..0000000 --- a/lua/crentist/lazy/autopairs.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { --- 'windwp/nvim-autopairs', --- event = "InsertEnter", --- config = true -} - diff --git a/lua/crentist/lazy/iconpicker.lua b/lua/crentist/lazy/iconpicker.lua deleted file mode 100644 index 4304d65..0000000 --- a/lua/crentist/lazy/iconpicker.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "ziontee113/icon-picker.nvim", - config = function() - require("icon-picker").setup({ disable_legacy_commands = true }) - - local opts = { noremap = true, silent = true } - - vim.keymap.set("n", "i", "IconPickerNormal", opts) - vim.keymap.set("n", "y", "IconPickerYank", opts) --> Yank the selected icon into register - vim.keymap.set("i", "", "IconPickerInsert", opts) - end -} - diff --git a/lua/crentist/lazy/lsp.lua b/lua/crentist/lazy/lsp.lua index fd81969..b118d84 100644 --- a/lua/crentist/lazy/lsp.lua +++ b/lua/crentist/lazy/lsp.lua @@ -25,8 +25,6 @@ return { config = function() local lspconfig = require('lspconfig') - local luasnip = require('luasnip') - -- load snippets from friendly-snippets require('luasnip.loaders.from_vscode').lazy_load() @@ -56,6 +54,7 @@ return { end, } }) + local pythonLineLength = 95 lspconfig.pylsp.setup { settings = { diff --git a/lua/crentist/lazy/obsidian.lua b/lua/crentist/lazy/obsidian.lua index 67c4a92..44420b8 100644 --- a/lua/crentist/lazy/obsidian.lua +++ b/lua/crentist/lazy/obsidian.lua @@ -1,15 +1,6 @@ return { 'epwalsh/obsidian.nvim', version = '*', -- recommended, use latest release instead of latest commit - -- lazy = true, - -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault: - -- event = { - -- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'. - -- -- E.g. 'BufReadPre ' .. vim.fn.expand '~' .. '/my-vault/*.md' - -- -- refer to `:h file-pattern` for more examples - -- 'BufReadPre /Users/rtim/Documents/Notes/tech-work-hobby/*.md', - -- 'BufNewFile /Users/rtim/Documents/Notes/tech-work-hobby/*.md', - -- }, dependencies = { -- Required. 'nvim-lua/plenary.nvim', diff --git a/lua/crentist/null-ls.lua b/lua/crentist/null-ls.lua index 397b21f..b3f322b 100644 --- a/lua/crentist/null-ls.lua +++ b/lua/crentist/null-ls.lua @@ -1,42 +1,3 @@ -- https://www.youtube.com/watch?v=q-oBU2fO1H4&t=189s local null_ls = require("null-ls") --- local function check_if_comment(node, params) --- if node == 'nil' then return false --- if node:type() ~= 'comment' or node:type() ~= 'comment_content' then return false end --- --- if node:type() == 'comment' then --- local child = node:child() --- --- if child == 'nil' then return false end --- end --- --- -- node exists and is a part of comment --- if node == 'nil' or node:type() ~= 'comment' or node:type() ~= 'comment_content' then return false end --- --- local parent = node:parent() --- if parent == 'nil' or parent:type() ~= 'comment' then return false end --- --- local text = vim.treesitter.get_node_text(node, ) --- end - --- null_ls.register({ --- name = 'Comment actions', --- method = null_ls.methods.CODE_ACTION, --- filetypes = {}, --- generator = { --- fn = function(params) --- local out = {} --- --- table.insert(out, --- { --- title = 'Test', --- action = function() --- print(vim.treesitter.get_node()) --- end --- }) --- return out --- end --- } --- }) -