cleanup
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
return {
|
|
||||||
-- 'windwp/nvim-autopairs',
|
|
||||||
-- event = "InsertEnter",
|
|
||||||
-- config = true
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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", "<Leader><Leader>i", "<cmd>IconPickerNormal<cr>", opts)
|
|
||||||
vim.keymap.set("n", "<Leader><Leader>y", "<cmd>IconPickerYank<cr>", opts) --> Yank the selected icon into register
|
|
||||||
vim.keymap.set("i", "<C-i>", "<cmd>IconPickerInsert<cr>", opts)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -25,8 +25,6 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
|
||||||
local luasnip = require('luasnip')
|
|
||||||
|
|
||||||
-- load snippets from friendly-snippets
|
-- load snippets from friendly-snippets
|
||||||
require('luasnip.loaders.from_vscode').lazy_load()
|
require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
|
|
||||||
@@ -56,6 +54,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local pythonLineLength = 95
|
local pythonLineLength = 95
|
||||||
lspconfig.pylsp.setup {
|
lspconfig.pylsp.setup {
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,15 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
'epwalsh/obsidian.nvim',
|
'epwalsh/obsidian.nvim',
|
||||||
version = '*', -- recommended, use latest release instead of latest commit
|
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 = {
|
dependencies = {
|
||||||
-- Required.
|
-- Required.
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
|
|||||||
@@ -1,42 +1,3 @@
|
|||||||
-- https://www.youtube.com/watch?v=q-oBU2fO1H4&t=189s
|
-- https://www.youtube.com/watch?v=q-oBU2fO1H4&t=189s
|
||||||
local null_ls = require("null-ls")
|
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
|
|
||||||
-- }
|
|
||||||
-- })
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user